Merge pull request #254 from dmitmel/master

[pull] master from dmitmel:master
This commit is contained in:
pull[bot] 2021-05-09 08:52:09 +00:00 committed by GitHub
commit 9e9ff0d20c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 1 deletions

View File

@ -87,7 +87,6 @@ alias e="$EDITOR"
if [[ "$EDITOR" == *vim ]]; then
alias es="e -S"
fi
alias sue="sudo --edit"
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
deswap() { sudo sh -c 'swapoff --all && swapon --all'; }
fi
# Taken from <https://vi.stackexchange.com/a/7810/34615>
sudoedit() {
SUDO_COMMAND="sudoedit $@" command sudoedit "$@"
}
alias sudoe="sudoedit"
alias sue="sudoedit"