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