aboutsummaryrefslogtreecommitdiff
path: root/Shell/zshrc
blob: 9b0e8a6c538338ff316fdd20a24ab8b941fd92e5 (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
# 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

#export PS1='%n@%m:%~%% ' 

export GPGKEY="895134C5"
export PATH="$HOME/bin:$PATH"
export EDITOR="vim"
export BROWSER="~/.ratposon/firesend"
export LD_LIBRARY_PATH=/usr/local/lib
export wiki_browser='firefox'

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


#fortune -s | cowsay -f $(ls /usr/share/cows/ | shuf -n1)
#fortune -s 
#~/archey