-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.zshrc
83 lines (67 loc) · 2.13 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
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=6000
SAVEHIST=6000
DIRSTACKSIZE=16
setopt autocd extendedglob autopushd pushd_ignore_dups auto_menu auto_list prompt_subst hist_ignore_all_dups correct correctall
bindkey -e
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
#zstyle :compinstall filename '/home/pawel/.zshrc'
autoload zutil
autoload complist
autoload -Uz compinit
autoload zmv
compinit -C
# End of lines added by compinstall
zstyle ':completion:*' menu select=5
setopt inc_append_history
setopt share_history
alias -g M="| most"
alias d="dirs -v"
alias CC="[ -f CMakeCache.txt ] && rm -rf **/CMakeFiles **/CMakeCache.txt **/Makefile"
alias ii="sudo apt-get install"
alias q="dpkg -l|grep"
alias qq="apt-cache show"
alias u="cd ~/src/ubuntu"
# bzr aliases
alias bl="bzr log -l1"
alias bll="bzr log -l5"
alias bq="bzr qlog"
alias bd="bzr diff"
alias bqd="bzr qdiff"
alias m="make"
alias m2="make -j2"
alias m3="make -j3"
# lxc aliases
alias lxc-ips="awk '{print \$3, \$4}' /var/lib/misc/dnsmasq.leases"
#autoload -Uz vcs_info
autoload -U colors && colors
################## PROMPT #########################
_NAME="%m"
if [ -e /etc/debian_chroot ]; then
_NAME="%{%F{red}%}"$(cat /etc/debian_chroot)
elif grep -q "# UNCONFIGURED" /etc/fstab; then ### this is the case for lxc containers
_NAME="%{%F{yellow}%}%m"
fi
_TIME="%{%F{red}%}[%T]$reset_color"
_DIR="%{%F{green}%}%d%#%{$reset_color%}%"
PROMPT="$_TIME %B$_NAME:$_DIR %b%{%F{white}%} "
unset _TIME _NAME _DIR
################## TERMINAL TITLE #################
set_title() { printf "\e]0;$@\a" }
dir_in_title() { set_title $PWD }
chpwd_functions=(dir_in_title)
#autoload -U promptinit
#promptinit
#prompt adam2
export DEBFULLNAME="Pawel Stolowski"
export DEBEMAIL="[email protected]"
export QUILT_PATCHES=debian/patches
export EDITOR=vim
alias e="$EDITOR"
export SSH_ASKPASS=/usr/lib/openssh/gnome-ssh-askpass
ANDROID_SDK=$HOME/Android/android-sdk-linux
export PATH=/usr/lib/ccache:$PATH
PATH=$PATH:$HOME/bin:$ANDROID_SDK/tools:$ANDROID_SDK/platform-tools
PATH=$PATH:$HOME/.rvm/bin # Add RVM to PATH for scripting