Browse Source

Update EDITOR and vi alias

pull/15/head
10sr 8 years ago
parent
commit
5d4a01713f
1 changed files with 12 additions and 1 deletions
  1. +12
    -1
      shrc

+ 12
- 1
shrc View File

@@ -275,12 +275,23 @@ _timeformat_rfc2822="%a, %d %b %Y %T %z"
_timeformat_num="%Y%m%d%H%M%S"
alias datenum="date +$_timeformat_num"

if null type nvim
then
export EDITOR=nvim
elif null type vim
then
export EDITOR=vim
elif null type vi
then
export EDITOR=vi
fi
test -n "$EDITOR" && alias vi=$EDITOR

# export GREP_OPTIONS=""
alias gr="grep -n --color=always"
$iswindows && alias gr="grep -n"
alias less="less -F"
__safe_alias em="emacs -nw"
__safe_alias vi=vim
alias pstree="LANG=C pstree"
alias cp="cp -v"
alias mv="mv -v"


Loading…
Cancel
Save