diff options
author | Benjamin Chaussé <Benjamin.Chausse@goto.com> | 2024-05-12 03:58:55 -0400 |
---|---|---|
committer | Benjamin Chaussé <Benjamin.Chausse@goto.com> | 2024-05-12 03:58:55 -0400 |
commit | 3d1d3908bd36d00d446fad6a9375f65681fafdb5 (patch) | |
tree | 7bcaa82c93d13c95daed9d3074f8b8b3d72520af | |
parent | 248b07dc0a141afbc3229984c33604cd9b69e3ab (diff) |
Update more stuff
-rw-r--r-- | .config/aliasrc | 2 | ||||
-rw-r--r-- | .config/zsh/.zshrc | 5 | ||||
-rw-r--r-- | .profile | 9 |
3 files changed, 12 insertions, 4 deletions
diff --git a/.config/aliasrc b/.config/aliasrc index 5ba0a05..2362487 100644 --- a/.config/aliasrc +++ b/.config/aliasrc @@ -17,7 +17,7 @@ cdd, cd .. e, $EDITOR w, $BROWSER g, git -gor, go run *.go +gg, go generate ./... mmi, make clean && make && sudo make install R, R -q tmcd, tmux attach-session -t diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index 53b582a..383b94a 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -82,7 +82,7 @@ mkcd() { f() { tmp="$(mktemp -uq)" - trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM PWR EXIT' HUP INT QUIT TERM PWR EXIT + trap 'rm -f $tmp >/dev/null 2>&1 && trap - HUP INT QUIT TERM EXIT' HUP INT QUIT TERM EXIT lf -single -last-dir-path="$tmp" "$@" if [ -f "$tmp" ]; then dir="$(cat "$tmp")" @@ -98,4 +98,5 @@ f() { alias gr='cd $(git rev-parse --show-cdup)' # Load zsh-syntax-highlighting; should be last. -source /usr/share/zsh/site-functions/zsh-syntax-highlighting.zsh 2>/dev/null +source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null +source /opt/homebrew/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh 2>/dev/null @@ -1,6 +1,13 @@ #!/bin/sh # shellcheck disable=SC2155 +# enable certain tools only if on macOS +case "$OSTYPE" in + darwin*) + eval "$(/opt/homebrew/bin/brew shellenv)" + ;; +esac + unsetopt PROMPT_SP 2>/dev/null # Applications @@ -16,7 +23,7 @@ export XDG_CACHE_HOME="$HOME/.cache" export XINITRC="$XDG_CONFIG_HOME/x11/xinitrc" # Path -export PATH="$PATH:$(find $HOME/.local/bin -type d | paste -sd ":" -)" +export PATH="$PATH:$(find "$HOME/.local/bin" -type d | paste -sd ":" -)" export PATH="$PATH:$GOPATH/bin" export PATH="$PATH:$HOME/.cargo/bin" export PATH="$PATH:/root/.local/bin" |