aboutsummaryrefslogtreecommitdiff
path: root/.zshrc
blob: 06269b2dad89e098fc3cbd4b9a1db49042bab69f (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
setopt histignorealldups sharehistory

# Use emacs keybindings even if our EDITOR is set to vi
bindkey -e
export VISUAL=vim
export EDITOR=vim

export LANG=en_US.UTF-8
export GPG_TTY=$(tty)

# Edit command line
autoload -U edit-command-line
zle -N edit-command-line
bindkey '^x^e' edit-command-line

# Keep 1000 lines of history within the shell and save it to ~/.zsh_history:
HISTSIZE=1000
SAVEHIST=1000
HISTFILE=~/.zsh_history

source $HOME/.path
source $HOME/.env
source $HOME/.aliases
source $HOME/.functions
source $HOME/.zrc

[[ -r /usr/share/z/z.sh ]] && source /usr/share/z/z.sh
[[ -r /usr/local/etc/profile.d/z.sh ]] && source /usr/local/etc/profile.d/z.sh

[ -r $HOME/.zplugrc ] && source $HOME/.zplugrc
[ -r $HOME/.nnnrc ] && source $HOME/.nnnrc
[ -r $HOME/.fzfrc ] && source $HOME/.fzfrc

[[ $(uname) == Darwin ]] && [ -r $HOME/.macos ] && source $HOME/.macos
[ -r $HOME/.zsh_local ] && source $HOME/.zsh_local