Update dotfiles/.zshrc, dotfiles/.bashrc, dotfiles/.profile

This commit is contained in:
Brian Zalewski 2022-11-02 14:00:15 +00:00
parent 129718454c
commit f6bb7882e4
3 changed files with 25 additions and 6 deletions

View file

@ -54,6 +54,11 @@ fi
### Bash Completions ### Bash Completions
if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then if [ "$0" = 'bash' ] || [ "$0" = '/bin/bash' ]; then
### direnv
if command -v direnv; then
direnv hook bash
fi
### Google Cloud SDK ### Google Cloud SDK
if command -v brew >/dev/null; then if command -v brew >/dev/null; then
if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]; then if [ -f "$(brew --prefix)/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/path.bash.inc" ]; then

View file

@ -228,8 +228,9 @@ if [ -f "$HOME/.local/asdf/asdf.sh" ]; then
fi fi
### fzf ### fzf
if [ -d /usr/local/opt/fzf/bin ]; then if command -v fzf > /dev/null && command -v fd > /dev/null; then
PATH="$PATH:/usr/local/opt/fzf/bin" export FZF_DEFAULT_COMMAND='fd --type f --strip-cwd-prefix --hidden --follow --exclude .git'
export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
fi fi
### Git ### Git
@ -238,6 +239,15 @@ export GIT_MERGE_AUTOEDIT=no
### gitfuzzy ### gitfuzzy
export PATH="/usr/local/src/gitfuzzy/bin:$PATH" 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 ### Poetry
export POETRY_HOME="$HOME/.local/poetry" export POETRY_HOME="$HOME/.local/poetry"
if [ ! -d "$POETRY_HOME" ]; then if [ ! -d "$POETRY_HOME" ]; then

View file

@ -1,5 +1,8 @@
# shellcheck disable=SC1090,SC1091,SC2034,SC2154,SC2296 # shellcheck disable=SC1090,SC1091,SC2034,SC2154,SC2296
### Profiling Support (via `zprof`)
zmodload zsh/zprof
### Language / Fonts ### Language / Fonts
export LANG="en_US" export LANG="en_US"
export LC_ALL="en_US.UTF-8" export LC_ALL="en_US.UTF-8"
@ -347,15 +350,16 @@ if command -v deno > /dev/null; then
_evalcache deno completions zsh _evalcache deno completions zsh
fi fi
### direnv
if command -v direnv > /dev/null; then
_evalcache direnv hook zsh
fi
### Fig ### Fig
#if command -v fig > /dev/null; then #if command -v fig > /dev/null; then
# eval $(fig completion zsh) # eval $(fig completion zsh)
#fi #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 ### gh
if command -v gh > /dev/null; then if command -v gh > /dev/null; then
_evalcache gh completion -s zsh _evalcache gh completion -s zsh