Compare commits

..

2 commits

Author SHA1 Message Date
pull[bot]
9e9ff0d20c
Merge pull request #254 from dmitmel/master
[pull] master from dmitmel:master
2021-05-09 08:52:09 +00:00
Dmytro Meleshko
b1566353e5 [zsh+nvim] fix sudoedit detection 2021-05-09 10:55:05 +03:00
2 changed files with 7 additions and 1 deletions

View file

@ -87,7 +87,6 @@ alias e="$EDITOR"
if [[ "$EDITOR" == *vim ]]; then if [[ "$EDITOR" == *vim ]]; then
alias es="e -S" alias es="e -S"
fi fi
alias sue="sudo --edit"
alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress' alias rsync-backup='rsync --archive --compress --verbose --human-readable --partial --progress'

View file

@ -95,3 +95,10 @@ unset date_formats
if (( _is_linux )) && command_exists swapoff && command_exists swapon; then if (( _is_linux )) && command_exists swapoff && command_exists swapon; then
deswap() { sudo sh -c 'swapoff --all && swapon --all'; } deswap() { sudo sh -c 'swapoff --all && swapon --all'; }
fi fi
# Taken from <https://vi.stackexchange.com/a/7810/34615>
sudoedit() {
SUDO_COMMAND="sudoedit $@" command sudoedit "$@"
}
alias sudoe="sudoedit"
alias sue="sudoedit"