Ver código fonte

Update EDITOR and vi alias

pull/15/head
10sr 8 anos atrás
pai
commit
5d4a01713f
1 arquivos alterados com 12 adições e 1 exclusões
  1. +12
    -1
      shrc

+ 12
- 1
shrc Ver arquivo

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


Carregando…
Cancelar
Salvar