65 lines
1.7 KiB
Text
65 lines
1.7 KiB
Text
# Variables
|
|
export EDITOR=/usr/bin/vim
|
|
export BROWSER=/usr/bin/firefox
|
|
|
|
# Aliases
|
|
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'
|
|
|
|
alias color-picker='grim -g "$(slurp -p)" -t ppm - | convert - -format "%[pixel:p{0,0}]" txt:-'
|
|
|
|
# Colors
|
|
eval `dircolors $HOME/.config/dircolors/dircolors`
|
|
|
|
# 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
|
|
|
|
# SSH agent
|
|
eval `keychain --quiet --agents ssh --eval`
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
# SDKMAN!
|
|
export SDKMAN_DIR="$HOME/.sdkman"
|
|
[[ -s "$HOME/.sdkman/bin/sdkman-init.sh" ]] && source "$HOME/.sdkman/bin/sdkman-init.sh"
|