Mercurial > hg > zsh-env
comparison zshrc @ 43:9fa883dc39e0
remove the ll alias right here, where the other aliases are removed, too
| author | Dirk Olmes <dirk@xanthippe.ping.de> |
|---|---|
| date | Tue, 04 Mar 2014 08:55:15 +0100 |
| parents | 2f93381e4ed8 |
| children | 9cc72008cf08 |
comparison
equal
deleted
inserted
replaced
| 42:fa52868da3d4 | 43:9fa883dc39e0 |
|---|---|
| 9 ZSH=/var/lib/zsh/oh-my-zsh | 9 ZSH=/var/lib/zsh/oh-my-zsh |
| 10 . $HOME/.zsh-env/oh-my-zsh | 10 . $HOME/.zsh-env/oh-my-zsh |
| 11 fi | 11 fi |
| 12 | 12 |
| 13 # get rid of some unwanted aliases from the oh-my-zsh env | 13 # get rid of some unwanted aliases from the oh-my-zsh env |
| 14 if [ "`alias | grep 'll='`" != "" ]; then | |
| 15 unalias ll | |
| 16 fi | |
| 14 if [ "`alias | grep 'l='`" != "" ]; then | 17 if [ "`alias | grep 'l='`" != "" ]; then |
| 15 unalias l | 18 unalias l |
| 16 fi | 19 fi |
| 17 if [ "`alias | grep 'lsa='`" != "" ]; then | 20 if [ "`alias | grep 'lsa='`" != "" ]; then |
| 18 unalias lsa | 21 unalias lsa |
| 44 | 47 |
| 45 # turn off "helpful" auto correction | 48 # turn off "helpful" auto correction |
| 46 unsetopt correct_all | 49 unsetopt correct_all |
| 47 | 50 |
| 48 # utility function that is used by various other modules | 51 # utility function that is used by various other modules |
| 49 removeFromPath() { | 52 removeFromPath() |
| 53 { | |
| 50 search_term="$1" | 54 search_term="$1" |
| 51 split_path=(${(s/:/)PATH}) | 55 split_path=(${(s/:/)PATH}) |
| 52 clean_path="" | 56 clean_path="" |
| 53 for element in ${split_path} | 57 for element in ${split_path} |
| 54 do | 58 do |
