blob: 6c663499ffcd4468b3ca1a8ee0f085b7e6c3bd63 (
plain)
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
|
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=10000
SAVEHIST=10000
setopt appendhistory autocd extendedglob correct
unsetopt beep
bindkey -e
zstyle ':completion:*' menu select
#zstyle ':completion:*' format '%BCompleting %d%b'
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/vasko/.zshrc'
autoload -Uz compinit
compinit
zstyle ':completion:*' matcher-list 'm:{a-zA-Z}={A-Za-z}' \
'r:|[._-]=* r:|=*' 'l:|=* r:|=*'
# End of lines added by compinstall
source ~/.bash_aliases
# Minimise the ESC timeout
KEYTIMEOUT=2
export GPGKEY="895134C5"
export PATH="$HOME/bin:$PATH"
export EDITOR="vim"
export LD_LIBRARY_PATH=/usr/local/lib
PROMPT="%{$fg_no_bold[yellow]%}%1~ %{$reset_color%}☢ "
#RPROMPT="[%{$fg_no_bold[yellow]%}%?%{$reset_color%}]"
#Enable highlightling and completion like fish
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
ZSH_AUTOSUGGEST_STRATEGY=match_prev_cmd
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
bindkey -M emacs '^P' history-substring-search-up
bindkey -M emacs '^N' history-substring-search-down
zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
# enable color support of ls and also add handy aliases
if [ -x /usr/bin/dircolors ]; then
test -r ~/.dircolors && eval "$(dircolors -b ~/.dircolors)" || eval "$(dircolors -b)"
alias ls='ls --color=auto'
alias dir='dir --color=auto'
#alias vdir='vdir --color=auto'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
fi
export ANDROID_HOME=/opt/android-sdk
case $TERM in
(*rxvt*)
# Write some info to terminal title.
# This is seen when the shell prompts for input.
function precmd {
if pgrep "panel" > /dev/null
then
print -Pn "\e]0;%(1j,%j job%(2j|s|); ,)%1~\a"
~/dotfiles/Panel/lemonbar/windows
fi
}
# Write command and args to terminal title.
# This is seen while the shell waits for a command to complete.
function preexec {
if pgrep "panel" > /dev/null
then
printf "\033]0;%s\a" "$1"
~/dotfiles/Panel/lemonbar/windows
fi
}
;;
esac
## Fancy sysinfo
~/bin/sysinfo
|