summaryrefslogtreecommitdiff
path: root/zsh/.zshrc
blob: 379aa7ded0171f3a8ec7ac414eb2414f456ded52 (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
export PATH="${PATH}:$HOME/bin:/usr/lib/surfraw"
export EDITOR=/usr/bin/nvim

# Source configuration files
source "$HOME/.zsh/plugins"
source "$HOME/.zsh/functions"
source "$HOME/.zsh/alias"

# Custom key bindings for built-in widgets
bindkey -a 'k' history-beginning-search-backward
bindkey -a 'j' history-beginning-search-forward
bindkey '^P' history-beginning-search-backward
bindkey '^N' history-beginning-search-forward

# Export GPG-agent related
if [[ -f "${HOME}/.gpg-agent-info" ]]; then
    source ${HOME}/.gpg-agent-info
    export GPG_AGENT_INFO
    export SSH_AUTH_SOCK
fi

PROMPT='%0~ $ '

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh