move completion to another location

This commit is contained in:
JesseBot 2022-12-25 14:17:34 +01:00
parent a327101dbb
commit 52ad27d8ac
No known key found for this signature in database
GPG key ID: C01D207CE04D55D9
4 changed files with 22 additions and 24 deletions

View file

@ -1,21 +1,16 @@
# this is the iterm2 shell integration stuff, making it use XDG_CONFIG_HOME
source $HOME/.config/bash/iterm2_integration.sh
# iterm2 specific commands and functions
export PATH=$PATH:$HOME/.local/bin/iterm2
# this is for macs without apple silicon, e.g. before M1
export PATH=$PATH:$HOME/Library/Python/3.11/bin
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ macOS PATH ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
if [[ $(uname) == *"Darwin"* ]]; then
# this is the iterm2 shell integration stuff, making it use XDG_CONFIG_HOME
source $HOME/.config/bash/iterm2_integration.sh
# iterm2 specific commands and functions
export PATH=$PATH:$HOME/.local/bin/iterm2
# this is for macs without apple silicon, e.g. before M1
export PATH=$PATH:$HOME/Library/Python/3.11/bin
# don't warn me that BASH is deprecated, becasuse it is already upgraded
export BASH_SILENCE_DEPRECATION_WARNING=1
# bash completion on macOS
if [ -f "/usr/local/etc/profile.d/bash_completion.sh" ]; then
# sources bash completion
. "/usr/local/etc/profile.d/bash_completion.sh"
fi
pip_path="lib/python3.11/site-packages"

10
.bashrc
View file

@ -13,7 +13,7 @@ esac
# I hate bells a lot
set bell-style none
# python version is subject to change, but really important
# python version is subject to change, but really important for pathing
export PYTHON_VERSION="3.11"
# this just makes howdoi use colors
@ -22,10 +22,10 @@ export HOWDOI_COLORIZE=1
# makes gpg prompt for passphrase in the terminal for git commit -S
export GPG_TTY=$(tty)
# source all the pathing exports
# source all the pathing exports including XDG Base Dir Spec env vars
. ~/.config/bash/path.sh
# history settings are in this file
# history settings are in this file (this relies on path.sh being sourced)
. $XDG_CONFIG_HOME/bash/history.sh
# everything to do with things like less and editors is in here
@ -44,9 +44,6 @@ export GPG_TTY=$(tty)
# Other Load on start #
# -------------------------------------------------------------------------- #
# This loads nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# include external rc files in ~/.config/bash/personal if they exist
personal_rc_file="$XDG_CONFIG_HOME/bash/personal/bashrc"
if [ -f $personal_rc_file ]; then
@ -67,4 +64,3 @@ fi
# run neofetch, a system facts cli script, immediately when we login anywhere
echo ""
neofetch
echo -e "\n\n"

View file

@ -11,6 +11,12 @@ if ! shopt -oq posix; then
fi
fi
# bash completion on macOS
if [ -f "/usr/local/etc/profile.d/bash_completion.sh" ]; then
# sources bash completion
. "/usr/local/etc/profile.d/bash_completion.sh"
fi
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Terraform ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ #
complete -C /usr/local/bin/terraform terraform

View file

@ -42,10 +42,11 @@ export PYTHONSTARTUP=$XDG_CONFIG_HOME/python/interactive_startup.py
export PYENV_ROOT=$XDG_DATA_HOME/pyenv
# ~~~~~~~~~~~~~~~~~~~ nvm/npm for javascript stuff ~~~~~~~~~~~~~~~~~~~~~~~~~
export NVM_DIR="$XDG_DATA_HOME"/nvm
# also for js stuff
# for npm to use XDG stuff
export NPM_CONFIG_USERCONFIG=$XDG_CONFIG_HOME/npm/npmrc
# This loads nvm
export NVM_DIR="$XDG_DATA_HOME"/nvm
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
# ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ golang ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
# TODO: probably should look into this one, to make it more XDG compliant