-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.zshrc
98 lines (86 loc) · 2.93 KB
/
.zshrc
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
#
# Executes commands at the start of an interactive session.
#
# Authors:
# Sorin Ionescu <sorin.ionescu@gmail.com>
#
# Source Prezto.
if [[ -s "${ZDOTDIR:-$HOME}/.zprezto/init.zsh" ]]; then
source "${ZDOTDIR:-$HOME}/.zprezto/init.zsh"
fi
# Customize to your needs...
# Custom HOME Path
export GEM_HOME=~/.gems
export RAILS_ENV=production
export RAILS_LOAD_ALL_LOCALES=true
PATH=$PATH:$HOME/.bin:$HOME/.gem/ruby/2.1.0/bin:$GEM_HOME/bin
export WORKON_HOME="$HOME/.virtualenvs"
source /usr/bin/virtualenvwrapper.sh
# source /usr/local/rvm/scripts/rvm
DEFAULT_USER=anass
# . "${ZDOTDIR:-$HOME}/.powerline/powerline/bindings/zsh/powerline.zsh"
# powerline-daemon -q
# . "/usr/share/powerline/zsh/powerline.zsh"
# Git Flow Auto-completion
source ~/.git-flow-completion/git-flow-completion.zsh
autoload -U zsh-mime-setup
zsh-mime-setup
export EDITOR='vim'
export VISUAL=$EDITOR
alias pacman="sudo pacman"
alias yum="sudo dnf"
alias dnf="sudo dnf"
alias apt="sudo apt"
alias systemctl="sudo systemctl"
alias homegit="git --work-tree=$HOME --git-dir=$HOME/.dotfiles.git"
alias tmux="tmux -2"
alias vim="gvim -v"
alias odoo="/home/anass/Documents/workspace/odoo/odoo8/odoo.py"
alias odoo-bin="/home/anass/Documents/workspace/odoo/odoo10/odoo-bin"
alias c="clear"
alias -s php="vim"
alias -s html="vim"
alias -s css="vim"
# docker-compose aliases
alias dc="docker-compose"
alias dcu="docker-compose up -d"
alias dcub="docker-compose up --build -d"
alias dcp="docker-compose ps"
alias dce="docker-compose exec"
alias dcr="docker-compose run"
alias dcrr="docker-compose run --rm"
alias dcl="docker-compose logs --tail 50"
alias dclf="docker-compose logs --tail 50 -f"
alias dcd="docker-compose down"
alias dcdv="docker-compose down -v --remove-orphans --rmi local"
function moon() {
tarihi1=`date +%Y%m%d`;
gcal -f/dev/null -"#0*d1#999_%Z__%O" %$tarihi1 -x --moon=8
}
POWERLEVEL9K_MODE='awesome-patched'
POWERLEVEL9K_COLOR_SCHEME='light'
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(context dir virtualenv vcs background_jobs)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status)
POWERLEVEL9K_SHORTEN_DIR_LENGTH=1
POWERLEVEL9K_SHORTEN_DELIMITER=""
POWERLEVEL9K_SHORTEN_STRATEGY="truncate_from_right"
POWERLEVEL9K_RAM_ELEMENTS="ram_free"
# Colors
POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_FOREGROUND="white"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="white"
POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="240"
POWERLEVEL9K_DIR_HOME_BACKGROUND="240"
POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="240"
POWERLEVEL9K_VIRTUALENV_FOREGROUND="white"
POWERLEVEL9K_VIRTUALENV_BACKGROUND="245"
POWERLEVEL9K_VCS_CLEAN_FOREGROUND="white"
POWERLEVEL9K_VCS_CLEAN_BACKGROUND="034"
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND="white"
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND="124"
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND="white"
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND="214"
POWERLEVEL9K_STATUS_OK_FOREGROUND="white"
POWERLEVEL9K_STATUS_OK_BACKGROUND="078"
POWERLEVEL9K_RAM_FOREGROUND="white"
POWERLEVEL9K_RAM_BACKGROUND="208"