Commit 35fbfb28fe6cee7c6f6a4fef6161c59f81f8c692
1 parent
e7dd21d7b4
Exists in
master
and in
1 other branch
[IMP] ALIAS zinst
Showing 1 changed file with 1 additions and 1 deletions Inline Diff
dotfiles/zshrc.sh
| 1 | #@IgnoreInspection AddShebang | 1 | #@IgnoreInspection AddShebang |
| 2 | # ENVIRONMENT: | 2 | # ENVIRONMENT: |
| 3 | export GJ_ENV=local_aptproxy | 3 | export GJ_ENV=local_aptproxy |
| 4 | 4 | ||
| 5 | export LANG=en_US.UTF-8 | 5 | export LANG=en_US.UTF-8 |
| 6 | 6 | ||
| 7 | # Compilation flags | 7 | # Compilation flags |
| 8 | export ARCHFLAGS="-arch x86_64" | 8 | export ARCHFLAGS="-arch x86_64" |
| 9 | 9 | ||
| 10 | # Themes are in (...)/oh-my-zsh/themes/ or "random" | 10 | # Themes are in (...)/oh-my-zsh/themes/ or "random" |
| 11 | ZSH_THEME="mj" | 11 | ZSH_THEME="mj" |
| 12 | 12 | ||
| 13 | CASE_SENSITIVE="true" | 13 | CASE_SENSITIVE="true" |
| 14 | DISABLE_AUTO_UPDATE="true" | 14 | DISABLE_AUTO_UPDATE="true" |
| 15 | #DISABLE_AUTO_TITLE="true" | 15 | #DISABLE_AUTO_TITLE="true" |
| 16 | ENABLE_CORRECTION="false" | 16 | ENABLE_CORRECTION="false" |
| 17 | COMPLETION_WAITING_DOTS="true" | 17 | COMPLETION_WAITING_DOTS="true" |
| 18 | DISABLE_UNTRACKED_FILES_DIRTY="true" | 18 | DISABLE_UNTRACKED_FILES_DIRTY="true" |
| 19 | HIST_STAMPS="dd.mm.yyyy" | 19 | HIST_STAMPS="dd.mm.yyyy" |
| 20 | ZSH_CUSTOM=$ZCFG/custom | 20 | ZSH_CUSTOM=$ZCFG/custom |
| 21 | 21 | ||
| 22 | plugins+=(command-not-found common-aliases debian dirhistory history history-substring-search screen systemadmin zsh_reload) | 22 | plugins+=(command-not-found common-aliases debian dirhistory history history-substring-search screen systemadmin zsh_reload) |
| 23 | 23 | ||
| 24 | # User configuration | 24 | # User configuration |
| 25 | #export PATH=$HOME/bin:/usr/local/bin:$PATH | 25 | #export PATH=$HOME/bin:/usr/local/bin:$PATH |
| 26 | 26 | ||
| 27 | # Environment | 27 | # Environment |
| 28 | if [ -f $ZCFG/dotfiles/environment.sh ]; then | 28 | if [ -f $ZCFG/dotfiles/environment.sh ]; then |
| 29 | . $ZCFG/dotfiles/environment.sh | 29 | . $ZCFG/dotfiles/environment.sh |
| 30 | fi | 30 | fi |
| 31 | 31 | ||
| 32 | # History | 32 | # History |
| 33 | export HISTFILESIZE= | 33 | export HISTFILESIZE= |
| 34 | export HISTSIZE= | 34 | export HISTSIZE= |
| 35 | export HISTFILE=~/.history | 35 | export HISTFILE=~/.history |
| 36 | 36 | ||
| 37 | # Apply | 37 | # Apply |
| 38 | source $ZSH/oh-my-zsh.sh | 38 | source $ZSH/oh-my-zsh.sh |
| 39 | 39 | ||
| 40 | # virtualenvwrapper | 40 | # virtualenvwrapper |
| 41 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then | 41 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then |
| 42 | export WORKON_HOME=$HOME/.virtualenvs | 42 | export WORKON_HOME=$HOME/.virtualenvs |
| 43 | export VIRTUALENVWRAPPER_HOOK_DIR=$HOME/.virtualenvs | 43 | export VIRTUALENVWRAPPER_HOOK_DIR=$HOME/.virtualenvs |
| 44 | source /usr/local/bin/virtualenvwrapper.sh | 44 | source /usr/local/bin/virtualenvwrapper.sh |
| 45 | plugins+=(pip python virtualenv virtualenvwrapper) | 45 | plugins+=(pip python virtualenv virtualenvwrapper) |
| 46 | fi | 46 | fi |
| 47 | 47 | ||
| 48 | # Aliases | 48 | # Aliases |
| 49 | alias zpl='cd $ZSH/plugins && ls -Alh | less' | 49 | alias zpl='cd $ZSH/plugins && ls -Alh | less' |
| 50 | 50 | ||
| 51 | alias zup='cd $ZCFG && git pull origin master && rm -f ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' | 51 | alias zup='cd $ZCFG && git pull origin master && rm -f ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' |
| 52 | alias zupdev='cd $ZCFG && git pull origin dev && rm -f ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' | 52 | alias zupdev='cd $ZCFG && git pull origin dev && rm -f ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' |
| 53 | 53 | ||
| 54 | alias zinst='cd && rm -r .config/zsh-config .z* .bashrc && curl -L http://git.str8.biz/mj/zsh-config/raw/master/tools/install.sh | sh' | 54 | alias zinst='cd && rm -rf .config/zsh-config .z* .bashrc && curl -L http://git.str8.biz/mj/zsh-config/raw/master/tools/install.sh | sh' |
| 55 | 55 | ||
| 56 | if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then | 56 | if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then |
| 57 | . $ZCFG/dotfiles/bash_aliases.sh | 57 | . $ZCFG/dotfiles/bash_aliases.sh |
| 58 | fi | 58 | fi |
| 59 | 59 | ||
| 60 | if [ -f $ZCFG/dotfiles/aliases_zsh.sh ]; then | 60 | if [ -f $ZCFG/dotfiles/aliases_zsh.sh ]; then |
| 61 | . $ZCFG/dotfiles/aliases_zsh.sh | 61 | . $ZCFG/dotfiles/aliases_zsh.sh |
| 62 | fi | 62 | fi |
| 63 | 63 |