Alias to call previous command with sudo

This commit is contained in:
Jeremy Gardais 2023-07-17 11:06:17 +02:00
parent 8834a5266d
commit f6d8dfd620
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 2 additions and 0 deletions

2
zshrc
View File

@ -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…