-
Notifications
You must be signed in to change notification settings - Fork 1
/
zshrc
77 lines (61 loc) · 2.54 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
# Set up the prompt
autoload -Uz promptinit
autoload -Uz add-zsh-hook
# promptinit
# prompt adam1
setopt histignorealldups sharehistory
# Use emacs keybindings even if our EDITOR is set to vi
# bindkey -e
# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history
# Don't store commands starting with a space in the HISTFILE
setopt HIST_IGNORE_SPACE
# Use modern completion system
skip_global_compinit=1
source ~/buntuble/downloads/zsh-autocomplete/zsh-autocomplete.plugin.zsh
zstyle ':completion:*' auto-description 'specify: %d'
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' format 'Completing %d'
zstyle ':completion:*' group-name ''
zstyle ':completion:*' menu select=2
if whence dircolors >/dev/null; then
eval "$(dircolors -b)"
zstyle ':completion:*:default' list-colors ${(s.:.)LS_COLORS}
alias ls='ls --color'
else
export CLICOLOR=1
zstyle ':completion:*:default' list-colors ''
fi
zstyle ':completion:*' list-colors ''
zstyle ':completion:*' list-prompt %SAt %p: Hit TAB for more, or the character to insert%s
zstyle ':completion:*' matcher-list '' 'm:{a-z}={A-Z}' 'm:{a-zA-Z}={A-Za-z}' 'r:|[._-]=* r:|=* l:|=*'
zstyle ':completion:*' menu select=long
zstyle ':completion:*' select-prompt %SScrolling active: current selection at %p%s
zstyle ':completion:*' use-compctl false
zstyle ':completion:*' verbose true
zstyle ":completion:*:commands" rehash 1
zstyle ':completion:*:*:kill:*:processes' list-colors '=(#b) #([0-9]#)*=0=01;31'
zstyle ':completion:*:kill:*' command 'ps -u $USER -o pid,%cpu,tty,cputime,cmd'
. $HOME/dev/files/prompt.zsh
alias lock='gnome-screensaver-command -l'
alias vol='amixer set Master'
alias suspend='dbus-send --system --print-reply --dest="org.freedesktop.UPower" /org/freedesktop/UPower org.freedesktop.UPower.Suspend && lock'
export BROWSER=/usr/bin/firefox
if [ -d /etc/update-motd.d ]; then
# Show message of the day in new consoles
for i in /etc/update-motd.d/*; do if [ "$i" != "/etc/update-motd.d/98-fsck-at-reboot" ]; then $i 2>/dev/null; fi; done
fi
function beep_on_return () (
echo -ne '\a'
)
add-zsh-hook precmd beep_on_return
# Add ./bin on the path, if it's marked as safe
export PATH=./.git/safe/../../bin:~/bin:$PATH:~/.gem/bin:~/.cargo/bin:~/.local/bin
export GEM_HOME=~/.gem
setxkbmap -layout us -option ctrl:nocaps
export SSH_AUTH_SOCK="$XDG_RUNTIME_DIR/ssh-agent.socket"
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
eval "$(direnv hook zsh)"
[ -f ~/.asdf/asdf.sh ] && . $HOME/.asdf/asdf.sh