Przeglądaj źródła

Remove oh-my-zsh aliases

Josh Bicking 7 lat temu
rodzic
commit
7962ebbcce
1 zmienionych plików z 5 dodań i 0 usunięć
  1. 5 0
      zshrc

+ 5 - 0
zshrc

@@ -5,6 +5,8 @@ source ~/.zshrc.local
 if [ -h ~/.antigen.zsh ]
 then
 
+    save_aliases=$(alias -L)
+
     source ~/.antigen.zsh
 
     # Load oh-my-zsh's library.
@@ -28,6 +30,9 @@ then
     # Tell antigen that you're done.
     antigen apply
 
+    unalias -m '*'
+    eval $save_aliases; unset save_aliases
+
 fi
 
 bindkey '^ ' autosuggest-accept