2021-08-17 19:17:38 +03:00
|
|
|
# key timeout
|
2019-10-26 20:05:31 +03:00
|
|
|
export KEYTIMEOUT=1
|
|
|
|
|
2019-11-11 08:31:15 +02:00
|
|
|
# prompt customization
|
|
|
|
export PURE_PROMPT_SYMBOL="λ"
|
|
|
|
export PURE_PROMPT_VICMD_SYMBOL="y"
|
|
|
|
|
2021-08-17 19:17:38 +03:00
|
|
|
# history settings
|
2019-10-26 20:05:31 +03:00
|
|
|
export HISTFILE=~/.zsh_history
|
2021-08-17 19:17:38 +03:00
|
|
|
export HISTSIZE=10000
|
|
|
|
export SAVEHIST=10000
|
|
|
|
# Ignore these functions from history since they will
|
|
|
|
# append the expandend command to the history
|
|
|
|
export HISTORY_IGNORE="(pi|pr)"
|
|
|
|
# Additional settings (source https://jdhao.github.io/2021/03/24/zsh_history_setup)
|
|
|
|
setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
setopt HIST_SAVE_NO_DUPS
|
|
|
|
setopt HIST_REDUCE_BLANKS
|
|
|
|
setopt INC_APPEND_HISTORY_TIME
|
|
|
|
setopt EXTENDED_HISTORY
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2020-01-13 09:26:51 +02:00
|
|
|
# Variable to pass to sdotdrop to get current user
|
|
|
|
export USRNAME=$USER
|
|
|
|
|
2021-08-17 19:36:11 +03:00
|
|
|
# Add ~/.bin to path
|
|
|
|
export PATH="/home/$USER/.bin:$PATH"
|
|
|
|
|
2019-10-26 20:05:31 +03:00
|
|
|
# go path
|
2021-08-17 19:36:11 +03:00
|
|
|
export GOPATH=~/.go
|
2019-10-26 20:05:31 +03:00
|
|
|
|
2021-08-17 19:17:38 +03:00
|
|
|
# skim settings
|
|
|
|
export SKIM_DEFAULT_COMMAND='fd -Ht f'
|
|
|
|
export SKIM_ALT_C_COMMAND='fd -Ht d'
|
|
|
|
export SKIM_DEFAULT_OPTS='-m --ansi --bind ctrl-a:toggle-all,ctrl-d:deselect-all,ctrl-t:toggle-all'
|
|
|
|
export SKIM_DEFAULT_OPTIONS="$SKIM_DEFAULT_OPTS" # TODO make an issue/PR about this difference
|
|
|
|
export SKIM_COMPLETION_TRIGGER='**'
|
|
|
|
export SKIM_CTRL_T_COMMAND="$SKIM_DEFAULT_COMMAND"
|
|
|
|
export SKIM_CTRL_T_OPTS='--preview "bat --color=always --style=numbers --line-range=:500 {}"'
|
|
|
|
# copy for fzf, incase I ever use it
|
|
|
|
export FZF_DEFAULT_COMMAND="$SKIM_DEFAULT_COMMAND"
|
|
|
|
export FZF_ALT_C_COMMAND="$SKIM_ALT_C_COMMAND"
|
|
|
|
export FZF_DEFAULT_OPTS="$SKIM_DEFAULT_OPTS"
|
|
|
|
export FZF_COMPLETION_TRIGGER="$SKIM_COMPLETION_TRIGGER"
|
|
|
|
export FZF_CTRL_T_COMMAND="$SKIM_DEFAULT_COMMAND"
|
|
|
|
export FZF_CTRL_T_OPTS="$SKIM_CTRL_T_OPTS"
|
2019-10-26 20:05:31 +03:00
|
|
|
|
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
|
2021-08-17 17:43:30 +03:00
|
|
|
export PAGER="sed 's/\x1b\[[0-9;]*m//g' | nvim -R"
|
2020-12-20 15:34:07 +02:00
|
|
|
export AUR_PAGER=$PAGER
|
2021-08-17 17:43:30 +03:00
|
|
|
export MANPAGER="nvim -c 'set ft=man' -R"
|
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)
|