Alias to call previous command with sudo
This commit is contained in:
parent
8834a5266d
commit
f6d8dfd620
2
zshrc
2
zshrc
|
@ -76,6 +76,8 @@ alias less='less -r'
|
||||||
alias pp='fc -e -'
|
alias pp='fc -e -'
|
||||||
# Call last command in edit mode
|
# Call last command in edit mode
|
||||||
alias ppe='fc'
|
alias ppe='fc'
|
||||||
|
# Call last command with sudo
|
||||||
|
alias pps='sudo $(fc -ln -1)'
|
||||||
|
|
||||||
# fdfind
|
# fdfind
|
||||||
## disregard vcs ignore files (.gitignore…) as homedir is a git repository…
|
## disregard vcs ignore files (.gitignore…) as homedir is a git repository…
|
||||||
|
|
Loading…
Reference in New Issue