Add host specific zshrc files
This commit is contained in:
parent
b37f25c0e8
commit
5bb160b5bb
3 changed files with 19 additions and 12 deletions
14
.zshrc.local
14
.zshrc.local
|
@ -12,8 +12,6 @@ alias ll='ls -l'
|
||||||
alias la='ls -a'
|
alias la='ls -a'
|
||||||
alias lla='ls -al'
|
alias lla='ls -al'
|
||||||
alias color-picker='grim -g "$(slurp -p)" -t ppm - | convert - -format "%[pixel:p{0,0}]" txt:-'
|
alias color-picker='grim -g "$(slurp -p)" -t ppm - | convert - -format "%[pixel:p{0,0}]" txt:-'
|
||||||
alias foundryvtt='pushd ~/Games/FoundryVTT && (node resources/app/main.js --dataPath="$HOME/.local/share/FoundryVTT/" && popd) || popd'
|
|
||||||
alias ts='watson log -dcj | watson2timesheet'
|
|
||||||
|
|
||||||
# Prompt
|
# Prompt
|
||||||
autoload -U colors zsh/terminfo
|
autoload -U colors zsh/terminfo
|
||||||
|
@ -37,11 +35,6 @@ zstyle ':prompt:grml:left:items:percent' token '%(!.#.❯) '
|
||||||
zstyle ':prompt:grml:left:items:percent' pre "%{$fg[green]%}"
|
zstyle ':prompt:grml:left:items:percent' pre "%{$fg[green]%}"
|
||||||
zstyle ':prompt:grml:left:items:percent' post "%{$reset_color%}"
|
zstyle ':prompt:grml:left:items:percent' post "%{$reset_color%}"
|
||||||
|
|
||||||
# SSH agent
|
|
||||||
if hash keychain 2>/dev/null; then
|
|
||||||
eval `keychain --quiet --agents ssh --eval`
|
|
||||||
fi
|
|
||||||
|
|
||||||
# fzf
|
# fzf
|
||||||
[ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh"
|
[ -s "/usr/share/fzf/key-bindings.zsh" ] && . "/usr/share/fzf/key-bindings.zsh"
|
||||||
[ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh"
|
[ -s "/usr/share/fzf/completion.zsh" ] && . "/usr/share/fzf/completion.zsh"
|
||||||
|
@ -51,10 +44,9 @@ if hash fnm 2>/dev/null; then
|
||||||
eval "$(fnm env)"
|
eval "$(fnm env)"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# SDKMAN!
|
|
||||||
export SDKMAN_DIR="$HOME/.sdkman"
|
|
||||||
[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ] && . "$SDKMAN_DIR/bin/sdkman-init.sh"
|
|
||||||
|
|
||||||
# Go
|
# Go
|
||||||
export GOPATH="$HOME/Development/go"
|
export GOPATH="$HOME/Development/go"
|
||||||
export PATH="$PATH:$HOME/Development/go/bin"
|
export PATH="$PATH:$HOME/Development/go/bin"
|
||||||
|
|
||||||
|
# Individual configuration
|
||||||
|
. "$HOME/.zshrc.local.local"
|
||||||
|
|
4
.zshrc.local.local##default
Normal file
4
.zshrc.local.local##default
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# SSH agent
|
||||||
|
export GPG_TTY="$(tty)"
|
||||||
|
export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket)
|
||||||
|
gpgconf --launch gpg-agent
|
11
.zshrc.local.local##hostname.avior
Normal file
11
.zshrc.local.local##hostname.avior
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
# SSH agent
|
||||||
|
if hash keychain 2>/dev/null; then
|
||||||
|
eval `keychain --quiet --agents ssh --eval`
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Watson
|
||||||
|
alias ts='watson log -dcj | watson2timesheet'
|
||||||
|
|
||||||
|
# SDKMAN!
|
||||||
|
export SDKMAN_DIR="$HOME/.sdkman"
|
||||||
|
[ -s "$SDKMAN_DIR/bin/sdkman-init.sh" ] && . "$SDKMAN_DIR/bin/sdkman-init.sh"
|
Loading…
Reference in a new issue