From 48763b4d7a8a4fcaab552228278091a51d89f551 Mon Sep 17 00:00:00 2001 From: Tyrel Souza Date: Tue, 13 Aug 2024 16:28:51 -0400 Subject: [PATCH] fix shells --- home/shell_base | 5 ----- home/zshrc | 12 ++++++++++-- justfile | 15 +++++++++++++-- 3 files changed, 23 insertions(+), 9 deletions(-) diff --git a/home/shell_base b/home/shell_base index c6032e5..500eb51 100644 --- a/home/shell_base +++ b/home/shell_base @@ -6,17 +6,12 @@ command -v pyenv >/dev/null || export PATH="$PYENV_ROOT/bin:$PATH" eval "$(pyenv init -)" export WORKON_HOME=~/rl/_envs/ -pyenv virtualenvwrapper export PATH=/Users/tyrel/bin/:$PATH -source ~/.jobs/redlattice.sh eval "$(direnv hook zsh)" export GPG_TTY=$(tty) -eval $(thefuck --alias crap) - export ANDROID_NDK_HOME="$HOMEBREW_PREFIX/share/android-ndk" -eval $(thefuck --alias) alias lzd='lazydocker' export BAT_THEME="Dracula" diff --git a/home/zshrc b/home/zshrc index eca66c6..686cb9a 100644 --- a/home/zshrc +++ b/home/zshrc @@ -1,4 +1,12 @@ -nitch autoload -Uz promptinit promptinit -prompt steeef \ No newline at end of file +prompt adam2 +source ~/.shell_aliases +source ~/.shell_funcs + + +export PYENV_ROOT="$HOME/.pyenv" +[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH" +eval "$(pyenv init -)" + +source ~/.shell_base diff --git a/justfile b/justfile index 191cc7c..d739544 100644 --- a/justfile +++ b/justfile @@ -27,14 +27,25 @@ pyenv: pyenv install 3.12.3 pyenv global 3.12.3 +reset-symlinks: + rm /home/{{USER}}/.config/nvim + rm /home/{{USER}}/bin + rm /home/{{USER}}/.gitconfig + rm /home/{{USER}}/.shell_base + rm /home/{{USER}}/.p10k.zsh + rm /home/{{USER}}/.shell_aliases + rm /home/{{USER}}/.shell_funcs + symlinks: - ln -s {{PWD}}/home/config/nvim /home/{{USER}}/.config/nvim - ln -s {{PWD}}/home/bin /home/{{USER}}/bin ln -s {{PWD}}/home/gitconfig /home/{{USER}}/.gitconfig ln -s {{PWD}}/home/shell_base /home/{{USER}}/.shell_base + ln -s {{PWD}}/home/p10k.zsh /home/{{USER}}/.p10k.zsh ln -s {{PWD}}/home/shell_aliases /home/{{USER}}/.shell_aliases ln -s {{PWD}}/home/shell_funcs /home/{{USER}}/.shell_funcs + ln -s {{PWD}}/home/bin /home/{{USER}} + ln -s {{PWD}}/home/config/nvim /home/{{USER}}/.config/ echo "source ~/.shell_base" >> ~/.bashrc + echo "source ~/.shell_base" >> ~/.zshrc debian: rust pyenv symlinks sudo apt-get install software-properties-common