Update dotfiles/.zshrc, dotfiles/.bashrc, dotfiles/.profile
This commit is contained in:
parent
129718454c
commit
f6bb7882e4
3 changed files with 25 additions and 6 deletions
|
@ -54,6 +54,11 @@ fi
|
|||
|
||||
### Bash Completions
|
||||
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
|
||||
### direnv
|
||||
if command -v direnv; then
|
||||
direnv hook bash
|
||||
fi
|
||||
|
||||
### Google Cloud SDK
|
||||
if command -v brew >/dev/null; then
|
||||
if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]; then
|
||||
|
|
|
@ -228,8 +228,9 @@ if [ -f "$HOME/.local/asdf/asdf.sh" ]; then
|
|||
fi
|
||||
|
||||
### fzf
|
||||
if [ -d /usr/local/opt/fzf/bin ]; then
|
||||
PATH="$PATH:/usr/local/opt/fzf/bin"
|
||||
if command -v fzf > /dev/null && command -v fd > /dev/null; then
|
||||
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
fi
|
||||
|
||||
### Git
|
||||
|
@ -238,6 +239,15 @@ export GIT_MERGE_AUTOEDIT=no
|
|||
### gitfuzzy
|
||||
export PATH="/usr/local/src/gitfuzzy/bin:$PATH"
|
||||
|
||||
### nnn
|
||||
if command -v nnn > /dev/null; then
|
||||
alias ls='nnn -de'
|
||||
alias N='sudo -E nnn -dH'
|
||||
alias nnn-install-plugins='curl -Ls https://raw.githubusercontent.com/jarun/nnn/master/plugins/getplugs | sh'
|
||||
export NNN_RCLONE='rclone mount --read-only --no-checksum'
|
||||
export NNN_SSHFS='sshfs -o reconnect,idmap=user,cache_timeout=3600'
|
||||
fi
|
||||
|
||||
### Poetry
|
||||
export POETRY_HOME="$HOME/.local/poetry"
|
||||
if [ ! -d "$POETRY_HOME" ]; then
|
||||
|
|
|
@ -1,5 +1,8 @@
|
|||
# shellcheck disable=SC1090,SC1091,SC2034,SC2154,SC2296
|
||||
|
||||
### Profiling Support (via `zprof`)
|
||||
zmodload zsh/zprof
|
||||
|
||||
### Language / Fonts
|
||||
export LANG="en_US"
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
|
@ -347,15 +350,16 @@ if command -v deno > /dev/null; then
|
|||
_evalcache deno completions zsh
|
||||
fi
|
||||
|
||||
### direnv
|
||||
if command -v direnv > /dev/null; then
|
||||
_evalcache direnv hook zsh
|
||||
fi
|
||||
|
||||
### Fig
|
||||
#if command -v fig > /dev/null; then
|
||||
# eval $(fig completion zsh)
|
||||
#fi
|
||||
|
||||
### fzf
|
||||
export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
|
||||
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
|
||||
|
||||
### gh
|
||||
if command -v gh > /dev/null; then
|
||||
_evalcache gh completion -s zsh
|
||||
|
|
Loading…
Reference in a new issue