added cdvim alias
This commit is contained in:
@@ -16,6 +16,9 @@ export PATH=$PATH:~/.local/bin
|
|||||||
alias dog='cat'
|
alias dog='cat'
|
||||||
alias rr='curl -s -L https://raw.githubusercontent.com/keroserene/rickrollrc/master/roll.sh | bash' #rickroll
|
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
|
#shutdown and reboot
|
||||||
alias sn='shutdown now'
|
alias sn='shutdown now'
|
||||||
alias rb='reboot'
|
alias rb='reboot'
|
||||||
@@ -148,4 +151,6 @@ ex ()
|
|||||||
mkcd() { mkdir "$@"&&cd "$@";}
|
mkcd() { mkdir "$@"&&cd "$@";}
|
||||||
# "cdls" to cd and ls in one go
|
# "cdls" to cd and ls in one go
|
||||||
cdls() { cd "$@"&&ls;}
|
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 <<<
|
# <<< cd shortcuts <<<
|
||||||
|
|||||||
Reference in New Issue
Block a user