dotfiles/.zshrc.local
2020-09-14 10:18:35 +02:00

46 lines
1.3 KiB
Plaintext

# Variables
export EDITOR=/usr/bin/vim
export BROWSER=/usr/bin/firefox
# Aliases
alias ls='ls --color=auto'
# Colors
eval `dircolors ~/.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/loherj/.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
#THIS MUST BE AT THE END OF THE FILE FOR SDKMAN TO WORK!!!
export SDKMAN_DIR="/home/loherj/.sdkman"
[[ -s "/home/loherj/.sdkman/bin/sdkman-init.sh" ]] && source "/home/loherj/.sdkman/bin/sdkman-init.sh"