diff options
Diffstat (limited to '.config/zsh')
-rw-r--r-- | .config/zsh/.zprofile | 19 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 33 |
2 files changed, 52 insertions, 0 deletions
diff --git a/.config/zsh/.zprofile b/.config/zsh/.zprofile new file mode 100644 index 0000000..59a6032 --- /dev/null +++ b/.config/zsh/.zprofile | |||
@@ -0,0 +1,19 @@ | |||
1 | #!/bin/zsh | ||
2 | # Profile file - executed by login shells | ||
3 | |||
4 | export PATH=$PATH:~/.local/bin:~/.local/bin/cryptusb:~/.local/bin/private:~/.local/bin/statusbar:~/.local/bin/theme:~/.local/bin/cmus:~/.local/bin/dmenu:~/.local/bin/backups:~/.local/bin/backups/borg | ||
5 | export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' | ||
6 | export LESSHISTFILE='-' | ||
7 | export XDG_CACHE_HOME="$HOME/.cache" | ||
8 | export XDG_CONFIG_HOME="$HOME/.config" | ||
9 | export XDG_DATA_HOME="$HOME/.local/share" | ||
10 | export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" | ||
11 | export WGETRC="$XDG_CONFIG_HOME/wget/wgetrc" | ||
12 | export ZDOTDIR="$XDG_CONFIG_HOME/zsh" | ||
13 | |||
14 | export BROWSER="firefox" | ||
15 | export EDITOR="vim" | ||
16 | export TERMINAL="urxvtc" | ||
17 | |||
18 | eval `ssh-agent -s` | ||
19 | [ "$(tty)" = "/dev/tty1" ] && startx "$XINITRC" | ||
diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc new file mode 100644 index 0000000..30e3f64 --- /dev/null +++ b/.config/zsh/.zshrc | |||
@@ -0,0 +1,33 @@ | |||
1 | # Source aliases and shortcuts | ||
2 | source ~/.config/shell/aliasrc | ||
3 | source ~/.config/shell/shortcutsrc | ||
4 | |||
5 | # History file settings | ||
6 | HISTSIZE=100000000 | ||
7 | SAVEHIST=100000000 | ||
8 | HISTFILE="$HOME/.cache/zsh/history" | ||
9 | |||
10 | # Shell options | ||
11 | bindkey -v | ||
12 | export KEYTIMEOUT=1 | ||
13 | setopt autocd | ||
14 | stty stop undef | ||
15 | setopt histappend | ||
16 | |||
17 | # Prompt | ||
18 | autoload -U colors && colors | ||
19 | PS1="%B%{$fg[black]%}[%b%{$fg[yellow]%}%n%B%{$fg[black]%}-at-%b%{$fg[yellow]%}%M%B%{$fg[black]%}]%b%{$fg[red]%}%1~%{$reset_color%}$ " | ||
20 | |||
21 | # Autocomplete Settings | ||
22 | autoload -U compinit | ||
23 | zstyle ":completion:*" menu select | ||
24 | zmodload zsh/complist | ||
25 | compinit | ||
26 | _comp_options+=(globdots) | ||
27 | # Vim keys in menu select | ||
28 | bindkey -M menuselect 'h' vi-backward-char | ||
29 | bindkey -M menuselect 'k' vi-up-line-or-history | ||
30 | bindkey -M menuselect 'l' vi-forward-char | ||
31 | bindkey -M menuselect 'j' vi-down-line-or-history | ||
32 | |||
33 | source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null | ||