From 1bb180cdff2177951bfabb93dd51b644d383289c Mon Sep 17 00:00:00 2001 From: humphreylin Date: Thu, 15 Aug 2019 11:25:17 +0800 Subject: modify default editor and add some aliases --- .bashrc | 1 + .zshrc | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/.bashrc b/.bashrc index 6048dbe..88507f9 100644 --- a/.bashrc +++ b/.bashrc @@ -122,6 +122,7 @@ export EDITOR=/usr/bin/vim # alias if grep -q Microsoft /proc/version; then alias psh='powershell.exe' + alias expl='explorer.exe' fi alias g='git' alias gaa='git add --all' diff --git a/.zshrc b/.zshrc index 38f2896..e836e6a 100644 --- a/.zshrc +++ b/.zshrc @@ -8,6 +8,8 @@ HISTSIZE=1000 SAVEHIST=1000 HISTFILE=~/.zsh_history +export EDITOR=/usr/bin/vim + # autojump if [ ! -d /usr/share/autojump ]; then echo 'Installing autojump ... ' @@ -39,3 +41,10 @@ zplug load # fzf [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh + +# alias +if grep -q Microsoft /proc/version; then + alias psh='powershell.exe' + alias expl='explorer.exe' +fi + -- cgit v1.2.3