added cdvim alias

This commit is contained in:
paul-loedige
2021-05-25 14:53:20 +02:00
parent 9626ff5853
commit d862cc7e90
+5
View File
@@ -16,6 +16,9 @@ export PATH=$PATH:~/.local/bin
alias dog='cat'
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #rickroll
#alias vim to nvim
alias vim='nvim'
#shutdown and reboot
alias sn='shutdown now'
alias rb='reboot'
@@ -148,4 +151,6 @@ ex ()
mkcd() { mkdir "$@"&&cd "$@";}
# "cdls" to cd and ls in one go
cdls() { cd "$@"&&ls;}
#cdvim to cd into the directory of a file and open the file in vim
cdvim(){ cd "$(dirname "$@")" && vim "$(basename "$@")";}
# <<< cd shortcuts <<<