dotfiles/.zshrc.local

46 lines
1.3 KiB
Text

# Variables
export EDITOR=/usr/bin/vim
export BROWSER=/usr/bin/firefox
# Aliases
alias ls='ls --color=auto'
# Colors
eval `dircolors $HOME/.dir_colors`
# Prompt
autoload -U colors zsh/terminfo
colors
zstyle ':vcs_info:git:*' formats "(%{$fg[yellow]%}%b%{$reset_color%})"
zstyle ':prompt:grml:left:items:user' pre "%{$fg[blue]%}"
zstyle ':prompt:grml:left:items:user' post "%{$reset_color%}"
zstyle ':prompt:grml:left:items:host' pre "%{$fg[green]%}"
zstyle ':prompt:grml:left:items:host' post "%{$reset_color%}:"
zstyle ':prompt:grml:left:items:path' pre "%{$fg[magenta]%}"
zstyle ':prompt:grml:left:items:path' post "%{$reset_color%}"
zstyle ':prompt:grml:left:items:host' token '%m'
zstyle ':prompt:grml:left:items:path' token '%20<..<%~%<<'
zstyle ':prompt:grml:left:items:percent' token '%(!.#.>) '
zstyle ':prompt:grml:right:items:sad-smiley' token ''
# Scripts
export PATH="$HOME/.local/bin:$PATH"
# Completions
if [ -e "/usr/share/fzf/key-bindings.zsh" ]
then
. /usr/share/fzf/key-bindings.zsh
fi
if [ -e "/usr/share/fzf/completion.zsh" ]
then
. /usr/share/fzf/completion.zsh
fi
eval `keychain --quiet --agents ssh --eval`
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"