dotfiles/.zshrc.local

52 lines
1.7 KiB
Text
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# 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:-'
# Prompt
autoload -U colors zsh/terminfo
colors
zstyle ':vcs_info:git:*' formats "%{$fg[yellow]%}%b%{$reset_color%} "
if [ -n "$SSH_CONNECTION" ]; then
zstyle ':prompt:grml:left:setup' items rc change-root user at host path vcs percent
else
zstyle ':prompt:grml:left:setup' items rc change-root path vcs percent
fi
zstyle ':prompt:grml:right:setup' items
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[magenta]%}"
zstyle ':prompt:grml:left:items:host' post "%{$reset_color%}"
zstyle ':prompt:grml:left:items:path' token '%30<..<%~%<< '
zstyle ':prompt:grml:left:items:path' pre "%{$fg[cyan]%}"
zstyle ':prompt:grml:left:items:path' post "%{$reset_color%}"
zstyle ':prompt:grml:left:items:percent' token '%(!.#.) '
zstyle ':prompt:grml:left:items:percent' pre "%{$fg[green]%}"
zstyle ':prompt:grml:left:items:percent' post "%{$reset_color%}"
# fzf
[ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh"
[ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh"
# fnm
if hash fnm 2>/dev/null; then
eval "$(fnm env)"
fi
# Go
export GOPATH="$HOME/Development/go"
export PATH="$PATH:$HOME/Development/go/bin"
# Individual configuration
. "$HOME/.zshrc.local.local"