2019-10-26 20:05:31 +03:00
|
|
|
# zsh key timeout
|
|
|
|
export KEYTIMEOUT=1
|
|
|
|
|
2019-11-11 08:31:15 +02:00
|
|
|
# prompt customization
|
|
|
|
export PURE_PROMPT_SYMBOL="λ"
|
|
|
|
export PURE_PROMPT_VICMD_SYMBOL="y"
|
|
|
|
|
2019-10-26 20:05:31 +03:00
|
|
|
# zsh history settings
|
|
|
|
export HISTFILE=~/.zsh_history
|
|
|
|
export HISTSIZE=1000
|
|
|
|
export SAVEHIST=1000
|
|
|
|
|
2020-01-13 09:26:51 +02:00
|
|
|
# Variable to pass to sdotdrop to get current user
|
|
|
|
export USRNAME=$USER
|
|
|
|
|
2019-10-26 20:05:31 +03:00
|
|
|
# go path
|
|
|
|
export GOPATH=~/.bin/go
|
|
|
|
|
|
|
|
# fzf settings
|
2020-09-18 23:26:58 +03:00
|
|
|
export FZF_DEFAULT_COMMAND='fd -Ht f'
|
|
|
|
export FZF_ALT_C_COMMAND='fd -Ht d'
|
2020-04-17 10:36:41 +03:00
|
|
|
export FZF_DEFAULT_OPTS='-m --bind ctrl-a:select-all,ctrl-d:deselect-all,ctrl-t:toggle-all'
|
2019-10-26 20:05:31 +03:00
|
|
|
export FZF_COMPLETION_TRIGGER='**'
|
|
|
|
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
2020-01-18 22:24:15 +02:00
|
|
|
export FZF_CTRL_T_OPTS='--preview "/usr/bin/cat {} | nvimpager -c "'
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# use lesspipe with less
|
|
|
|
export LESSOPEN="|lesspipe.sh %s"
|
|
|
|
|
2020-11-21 15:37:58 +02:00
|
|
|
# dotfile repository location
|
|
|
|
export DOTREPO="$HOME/git/dotfiles"
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# nvim ftw!
|
|
|
|
export EDITOR=nvim
|
|
|
|
export PAGER="nvimpager -p"
|
2020-12-20 15:34:07 +02:00
|
|
|
export AUR_PAGER=$PAGER
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2020-12-17 00:08:23 +02:00
|
|
|
# Use GPG for SSH authentication
|
2019-10-26 20:05:31 +03:00
|
|
|
export GPG_TTY="$(tty)"
|
2020-12-17 00:08:23 +02:00
|
|
|
|
|
|
|
# set SSH_AUTH_SOCK if not logging in over SSH
|
2021-04-21 17:46:54 +03:00
|
|
|
if [ "$SSH_CONNECTION" -eq "" ]; then
|
2020-12-17 00:08:23 +02:00
|
|
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
|
|
|
gpgconf --launch gpg-agent
|
|
|
|
fi
|
2019-10-26 20:05:31 +03:00
|
|
|
|
|
|
|
# tehfuk
|
|
|
|
eval $(thefuck --alias)
|