From c7dce0385e2ce4282b3d8c4695e0ce49a4c27908 Mon Sep 17 00:00:00 2001 From: Jordan Orelli Date: Wed, 30 Dec 2020 20:16:37 -0600 Subject: [PATCH] smarter path includes --- .bashrc | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/.bashrc b/.bashrc index 9db2378..a3b3749 100644 --- a/.bashrc +++ b/.bashrc @@ -51,7 +51,7 @@ Linux) ;; esac -alias tree="tree -C -I vendor" +alias tree="tree -C" alias ls="ls --color=auto" if [ -f "$HOME/.localrc" ]; then @@ -59,4 +59,24 @@ if [ -f "$HOME/.localrc" ]; then fi alias randompass="python -c \"import string, random; print ''.join(random.sample(string.letters+string.digits, 8))\"" -alias dotfiles="$HOME/.dotfiles/install.sh" + +if [ -d "$HOME/.dotfiles" ]; then + alias dotfiles="$HOME/.dotfiles/install.sh" +fi + +# if kitty is installed, register its completions +if command -v kitty &> /dev/null +then + source <(kitty + complete setup bash) +fi + +# add the Go bindir to the path if we have the standard Go install dir +if [ -d /usr/local/go ]; then + export PATH=$PATH:/usr/local/go/bin +fi + +# likewise for zig, but zig doesn't have a bin dir for some reason, which is +# weird. +if [ -d /usr/local/zig ]; then + export PATH=$PATH:/usr/local/zig +fi