dotfiles/.zshrc.local

61 lines
1.5 KiB
Text
Raw Normal View History

2020-09-14 10:18:35 +02:00
# Variables
export EDITOR=/usr/bin/vim
export BROWSER=/usr/bin/firefox
# Aliases
2020-09-19 22:23:11 +02:00
alias .2='cd ../..'
alias .3='cd ../../..'
alias .4='cd ../../../..'
alias .5='cd ../../../../..'
if hash exa 2>/dev/null
then
alias ls='exa --color=automatic'
else
alias ls='ls --color=auto'
fi
alias ll='ls -l'
alias la='ls -a'
alias lla='ls -al'
2020-09-14 10:18:35 +02:00
# Colors
2020-09-14 11:04:00 +02:00
eval `dircolors $HOME/.dir_colors`
2020-09-14 10:18:35 +02:00
# 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
2020-09-14 11:04:00 +02:00
export PATH="$HOME/.local/bin:$PATH"
2020-09-14 10:18:35 +02:00
# 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
2020-09-19 22:23:11 +02:00
# SSH agent
2020-09-19 00:47:47 +02:00
eval `keychain --quiet --agents ssh --eval`
2020-09-14 10:18:35 +02:00
2020-09-19 22:23:11 +02:00
# SDKMAN!
2020-09-14 11:04:00 +02:00
export SDKMAN_DIR="$HOME/.sdkman"
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"