-
Notifications
You must be signed in to change notification settings - Fork 2
/
.zshrc
50 lines (40 loc) · 1.36 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
# Modules
autoload -U promptinit colors compinit
promptinit
colors
compinit
# History related settings
HISTFILE=~/.histfile
HISTSIZE=100000
SAVEHIST=100000
# Make `cd` behave like `pushd`
setopt autopushd
# Prompt style
prompt off
#source ~/Code/Shell/zsh-git-prompt/zshrc.sh # Enable git prompt
#GIT_PROMPT_EXECUTABLE="haskell" # Use haskell for git prompt
#PROMPT="%{%(#~$fg[magenta]~$fg[green])%}%m %~%b$(git_super_status) %# "
PROMPT="%{%(#~$fg[magenta]~$fg[green])%}%m %~%b %# "
# Source aliases
[ -f ~/.aliases ] && source ~/.aliases
[ -f ~/.config/ls_col ] && source ~/.config/ls_col
[ -f ~/.config/bsd_colors ] && source ~/.config/bsd_colors
# Vars
export GPG_TTY=$(tty)
# Completions
zstyle ':completion:*:kill:*' command 'ps -e -o pid,%cpu,cmd'
# Virtualenv wrapper
#export WORKON_HOME=~/venvs
#source /usr/share/virtualenvwrapper/virtualenvwrapper.sh
# Custom variables for my ~/bin/ scripts
export SCREENSHOT_DIRECTORY=~/Screenshots
export REMOTE_SCREENSHOT_DIRECTORY="docker:/data/volumes/f.erethon.com/screen"
export REMOTE_SCREENSHOT_URL="https://f.erethon.com/screen/"
if command -v fzf-share >/dev/null; then
source "$(fzf-share)/key-bindings.zsh"
source "$(fzf-share)/completion.zsh"
fi
if [ -f /usr/share/doc/fzf/examples/key-bindings.zsh ]; then
source /usr/share/doc/fzf/examples/key-bindings.zsh
source /usr/share/doc/fzf/examples/completion.zsh
fi