Explorar el Código

Remove oh-my-zsh aliases

Josh Bicking hace 7 años
padre
commit
7962ebbcce
Se han modificado 1 ficheros con 5 adiciones y 0 borrados
  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