aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
diff options
context:
space:
mode:
authorhumphreylin <[email protected]>2019-08-15 11:25:17 +0800
committerhumphreylin <[email protected]>2019-08-15 11:27:21 +0800
commit1bb180cdff2177951bfabb93dd51b644d383289c (patch)
treec5774da3873dc1a249314de29a8950ed459bfe9f /.zshrc
parent87ccbd32e89796c56a9755c5c73ce4a2ea6233de (diff)
downloaddotfiles-1bb180cdff2177951bfabb93dd51b644d383289c.tar.gz
dotfiles-1bb180cdff2177951bfabb93dd51b644d383289c.tar.bz2
dotfiles-1bb180cdff2177951bfabb93dd51b644d383289c.zip
modify default editor and add some aliases
Diffstat (limited to '.zshrc')
-rw-r--r--.zshrc9
1 files changed, 9 insertions, 0 deletions
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
+