-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathzshrc
58 lines (47 loc) · 1.17 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
#!/usr/bin/zsh
# Lines configured by zsh-newuser-install
HISTFILE=~/.histfile
HISTSIZE=500
SAVEHIST=1000
bindkey -v
# End of lines configured by zsh-newuser-install
# The following lines were added by compinstall
zstyle :compinstall filename '/home/$USER/.zshrc'
autoload -Uz compinit
compinit
# End of lines added by compinstall
fpath=( "$HOME/.zprompts" $fpath )
autoload -Uz promptinit
promptinit
prompt halflife
if (( ${+SSH_CONNECTION} )); then
PROMPT="[SSH] $PROMPT"
fi
#keybindings
bindkey -s "^N" "ranger\n"
cdUndoKey() {
popd
zle reset-prompt
echo
ls
zle reset-prompt
}
cdParentKey() {
pushd ..
zle reset-prompt
echo
ls
zle reset-prompt
}
zle -N cdParentKey
zle -N cdUndoKey
bindkey '^P' cdParentKey
bindkey '^B' cdUndoKey
function cr_file() {
[ -f $1 ] && . $1
}
cr_file /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
cr_file /usr/local/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
cr_file /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
cr_file ~/.bash_aliases
[ -f ~/Documents/date-test.elv ] && elvish ~/Documents/date-test.elv