Commit a745d604741560a0748569b9e53e4735cd802584

Authored by mj
1 parent 1a26cafca9
Exists in master and in 1 other branch 02-merge

[IMP] zshrc.sh: ADD ALIASES zup-rm & zup-rm-dev

Showing 1 changed file with 4 additions and 0 deletions Inline Diff

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 alias zup='cd $ZCFG && git pull origin master && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' 51 alias zup='cd $ZCFG && git pull origin master && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc'
51 alias zupdev='cd $ZCFG && git pull origin dev && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc' 52 alias zupdev='cd $ZCFG && git pull origin dev && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc'
52 53
54 alias zup-rm='cd && rm -r .config/zsh-config .z* .bashrc && cd $ZCFG && git pull origin master && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc'
55 alias zup-rm-dev='cd && rm -r .config/zsh-config .z* .bashrc && cd $ZCFG && git pull origin dev && rm ~/.zcompdump* ~/.zshrc.zwc && cd && source ~/.zshrc'
56
53 if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then 57 if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then
54 . $ZCFG/dotfiles/bash_aliases.sh 58 . $ZCFG/dotfiles/bash_aliases.sh
55 fi 59 fi
56 60
57 if [ -f $ZCFG/dotfiles/aliases_zsh.sh ]; then 61 if [ -f $ZCFG/dotfiles/aliases_zsh.sh ]; then
58 . $ZCFG/dotfiles/aliases_zsh.sh 62 . $ZCFG/dotfiles/aliases_zsh.sh
59 fi 63 fi
60 64