2019-04-08 16:04:16 +02:00
export GOPATH = ~/go
2021-12-11 13:15:10 +01:00
export PATH = $PATH :~/bin:~/go/binA:/opt/devkitpro/devkitARM/bin:/opt/devkitpro/tools/bin:~/.local/bin
2020-06-02 11:05:13 +02:00
export RUSTFLAGS = "-C target-cpu=native"
2020-11-30 11:38:53 +01:00
export DEVKITPRO = /opt/devkitpro
export DEVKITARM = /opt/devkitpro/devkitARM
export DEVKITPPC = /opt/devkitpro/devkitPPC
2020-06-02 11:05:13 +02:00
#export PAGER=nvimpager
2018-02-07 13:34:58 +01:00
[ -f ~/.config/zsh/aliases.sh ] && source ~/.config/zsh/aliases.sh
2019-04-08 16:04:16 +02:00
SAVEHIST = 100000
HISTFILE = ~/.zhistory
HISTSIZE = 100000
setopt appendhistory
2018-02-07 13:34:58 +01:00
autoload -Uz vcs_info
autoload -U colors && colors
zstyle ':vcs_info:*' stagedstr " ${ fg_blue } ? "
zstyle ':vcs_info:*' unstagedstr " ${ fg_brown } ? "
zstyle ':vcs_info:*' check-for-changes true
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{11}%r'
2020-06-02 11:05:13 +02:00
zstyle ':vcs_info:*' enable git
2018-02-07 13:34:58 +01:00
2020-11-30 11:38:53 +01:00
# no longer needed because starship handles the git stuff
# precmd () {
#if [[ -z $(git ls-files --other --exclude-standard 2> /dev/null) ]] {
#zstyle ':vcs_info:*' formats "${fg_green} ${fg_normal}%b%c%u${at_normal}"
#} else {
#zstyle ':vcs_info:*' formats "${fg_green} ${fg_normal}%b%c%u${fg_red}!${at_normal}"
#}
#vcs_info
#}
2018-02-07 13:34:58 +01:00
2020-11-30 11:38:53 +01:00
#setopt prompt_subst
2018-02-07 13:34:58 +01:00
# I usually change the hostname color between my systems
2020-06-02 11:05:13 +02:00
hostcolor = "4"
2018-07-21 17:32:20 +02:00
bgcolor = "16"
2020-11-30 11:38:53 +01:00
eval " $( starship init zsh) "
#PROMPT="%(!.%F{3}[%F{1}%n%F{3}@%F{$hostcolor}%m %F{3}%c%F{5}\${vcs_info_msg_0_}%F{3}] %(?/%F{2}/%F{1})#.\
#%F{1}[%F{3}%n%F{1}@%F{$hostcolor}%m %F{5}%c%F{4}\${vcs_info_msg_0_}%F{1}] %(?/%F{2}/%F{1}))%f "
2018-02-07 13:34:58 +01:00
# the same prompt without git/vcs stuff
2018-07-21 17:32:20 +02:00
#PROMPT="%(!.%F{3}[%F{1}%n%F{3}@%F{$hostcolor}%m %F{3}%c%F{5}%F{3}] %(?/%F{2}/%F{1})#.%F{1}[%F{3}%n%F{1}@%F{$hostcolor}%m %F{146}%c%F{111}%F{1}] %(?/%F{2}/%F{1})Δ)%f "
2018-02-07 13:34:58 +01:00
autoload -Uz compinit
compinit
export WINEDEBUG = -all
# Get completion above command line
setopt noalwayslastprompt
setopt list_types
setopt complete_in_word
2018-07-21 17:45:24 +02:00
if [ ! -S ~/.ssh/ssh_auth_sock ] ; then
eval ` ssh-agent`
ln -sf " $SSH_AUTH_SOCK " ~/.ssh/ssh_auth_sock
2019-04-08 16:04:16 +02:00
ssh-add ~/.ssh/git
ssh-add ~/.ssh/aur_ecdsa
ssh-add ~/.ssh/maria
2018-07-21 17:45:24 +02:00
fi
export SSH_AUTH_SOCK = ~/.ssh/ssh_auth_sock
2019-04-08 16:04:16 +02:00
ssh-add -l > /dev/null || ssh-add
2018-04-01 20:46:40 +02:00
2018-02-08 01:39:55 +01:00
ZSHCACHEDIR = /tmp/$USER -zsh-cache
2018-02-07 13:34:58 +01:00
zstyle ':completion:*' completer _expand _complete _correct _approximate
zstyle ':completion:*' expand prefix suffix
zstyle ':completion:*' list-suffixes true
2020-06-02 11:05:13 +02:00
# This line does the non-prefix matching magic
2018-02-07 13:34:58 +01:00
zstyle ':completion:*' matcher-list '' '+m:{a-z}={A-Z}' 'r:|[._-]=** r:|=**' 'l:|=* r:|=*'
zstyle ':completion:*:options' description 'yes'
zstyle ':completion:*:options' auto-description '%d'
2018-05-22 18:49:51 +02:00
2019-04-08 16:04:16 +02:00
setopt nonomatch
source /usr/share/fzf/key-bindings.zsh