Commit f1156f079ddd563edc3bdf2e46530c2046f7cb46
1 parent
b8ec0300d4
Exists in
master
and in
2 other branches
[IMP] ADD dotfiles/aliases_zsh.sh
Showing 2 changed files with 15 additions and 0 deletions Inline Diff
dotfiles/aliases_zsh.sh
File was created | 1 | #@IgnoreInspection AddShebang | |
2 | |||
3 | # Docker: | ||
4 | alias dcof="sudo docker-compose -f |" | ||
5 | alias dcbf="sudo docker-compose -f | build" | ||
6 | alias dclf="sudo docker-compose -f | logs" | ||
7 | alias dcpsf="sudo docker-compose -f | ps" | ||
8 | alias dcrmf="sudo docker-compose -f | rm" | ||
9 | alias dcsf="sudo docker-compose -f | stop" | ||
10 | alias dcstaf="sudo docker-compose -f | start" | ||
11 | alias dcuf="sudo docker-compose -f | up" |
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 | # Path to your oh-my-zsh installation. | 5 | # Path to your oh-my-zsh installation. |
6 | export ZSH=$ZCFG/packages/oh-my-zsh | 6 | export ZSH=$ZCFG/packages/oh-my-zsh |
7 | 7 | ||
8 | export LANG=en_US.UTF-8 | 8 | export LANG=en_US.UTF-8 |
9 | 9 | ||
10 | # Compilation flags | 10 | # Compilation flags |
11 | export ARCHFLAGS="-arch x86_64" | 11 | export ARCHFLAGS="-arch x86_64" |
12 | 12 | ||
13 | # Themes are in (...)/oh-my-zsh/themes/ or "random" | 13 | # Themes are in (...)/oh-my-zsh/themes/ or "random" |
14 | ZSH_THEME="mj" | 14 | ZSH_THEME="mj" |
15 | 15 | ||
16 | CASE_SENSITIVE="true" | 16 | CASE_SENSITIVE="true" |
17 | DISABLE_AUTO_UPDATE="true" | 17 | DISABLE_AUTO_UPDATE="true" |
18 | #DISABLE_AUTO_TITLE="true" | 18 | #DISABLE_AUTO_TITLE="true" |
19 | ENABLE_CORRECTION="false" | 19 | ENABLE_CORRECTION="false" |
20 | COMPLETION_WAITING_DOTS="true" | 20 | COMPLETION_WAITING_DOTS="true" |
21 | DISABLE_UNTRACKED_FILES_DIRTY="true" | 21 | DISABLE_UNTRACKED_FILES_DIRTY="true" |
22 | HIST_STAMPS="dd.mm.yyyy" | 22 | HIST_STAMPS="dd.mm.yyyy" |
23 | ZSH_CUSTOM=$ZCFG/custom | 23 | ZSH_CUSTOM=$ZCFG/custom |
24 | 24 | ||
25 | plugins+=(command-not-found common-aliases debian dirhistory history history-substring-search screen systemadmin zsh_reload) | 25 | plugins+=(command-not-found common-aliases debian dirhistory history history-substring-search screen systemadmin zsh_reload) |
26 | 26 | ||
27 | # User configuration | 27 | # User configuration |
28 | export PATH=$HOME/bin:/usr/local/bin:$PATH | 28 | export PATH=$HOME/bin:/usr/local/bin:$PATH |
29 | 29 | ||
30 | # Environment | 30 | # Environment |
31 | if [ -f $ZCFG/dotfiles/environment.sh ]; then | 31 | if [ -f $ZCFG/dotfiles/environment.sh ]; then |
32 | . $ZCFG/dotfiles/environment.sh | 32 | . $ZCFG/dotfiles/environment.sh |
33 | fi | 33 | fi |
34 | 34 | ||
35 | # History | 35 | # History |
36 | export HISTFILESIZE= | 36 | export HISTFILESIZE= |
37 | export HISTSIZE= | 37 | export HISTSIZE= |
38 | export HISTFILE=~/.history | 38 | export HISTFILE=~/.history |
39 | 39 | ||
40 | # Apply | 40 | # Apply |
41 | source $ZSH/oh-my-zsh.sh | 41 | source $ZSH/oh-my-zsh.sh |
42 | 42 | ||
43 | # virtualenvwrapper | 43 | # virtualenvwrapper |
44 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then | 44 | if [ -f /usr/local/bin/virtualenvwrapper.sh ]; then |
45 | export WORKON_HOME=$HOME/.virtualenvs | 45 | export WORKON_HOME=$HOME/.virtualenvs |
46 | source /usr/local/bin/virtualenvwrapper.sh | 46 | source /usr/local/bin/virtualenvwrapper.sh |
47 | plugins+=(pip python virtualenv virtualenvwrapper) | 47 | plugins+=(pip python virtualenv virtualenvwrapper) |
48 | fi | 48 | fi |
49 | 49 | ||
50 | # Aliases | 50 | # Aliases |
51 | alias zpl='cd $ZSH/plugins && ls -Alh | less' | 51 | alias zpl='cd $ZSH/plugins && ls -Alh | less' |
52 | alias zup='cd $ZCFG && git pull origin master && source ~/.zshrc && cd' | 52 | alias zup='cd $ZCFG && git pull origin master && source ~/.zshrc && cd' |
53 | 53 | ||
54 | if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then | 54 | if [ -f $ZCFG/dotfiles/bash_aliases.sh ]; then |
55 | . $ZCFG/dotfiles/bash_aliases.sh | 55 | . $ZCFG/dotfiles/bash_aliases.sh |
56 | fi | ||
57 | |||
58 | if [ -f $ZCFG/dotfiles/aliases_zsh.sh ]; then | ||
59 | . $ZCFG/dotfiles/aliases_zsh.sh | ||
56 | fi | 60 | fi |