mirror of
https://github.com/keanuplayz/dotfiles.git
synced 2024-08-15 02:33:12 +00:00
[zsh] add alias for opening current Vim session
This commit is contained in:
parent
95d44a7e04
commit
509f39abaa
2 changed files with 7 additions and 2 deletions
|
@ -61,3 +61,10 @@ alias df='df -h'
|
|||
alias free='free -h'
|
||||
|
||||
alias apt-get="echo -e \"use 'apt' instead of 'apt-get'\nif you really want to use 'apt-get', type '"'\\\\'"apt-get'\" #"
|
||||
|
||||
# editor
|
||||
alias edit="$EDITOR"
|
||||
alias e="$EDITOR"
|
||||
if [[ "$EDITOR" == *vim ]]; then
|
||||
alias es="e -S"
|
||||
fi
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
# find editor
|
||||
export EDITOR="nvim"
|
||||
export VISUAL="$EDITOR"
|
||||
alias edit="$EDITOR"
|
||||
alias e="$EDITOR"
|
||||
|
||||
export PAGER='less'
|
||||
export LESS='--RAW-CONTROL-CHARS'
|
||||
|
|
Loading…
Reference in a new issue