Skip to content

Commit

Permalink
Switch to asdf
Browse files Browse the repository at this point in the history
  • Loading branch information
fabuzaid21 committed Feb 4, 2025
1 parent 1c5ab1e commit a99e002
Show file tree
Hide file tree
Showing 6 changed files with 44 additions and 40 deletions.
1 change: 1 addition & 0 deletions .asdfrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
legacy_version_file = yes
5 changes: 5 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
Expand Up @@ -44,3 +44,8 @@
whitespace = red reverse
[rebase]
updateRefs = true
[filter "lfs"]
smudge = git-lfs smudge -- %f
process = git-lfs filter-process
required = true
clean = git-lfs clean -- %f
3 changes: 3 additions & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
nodejs 18.16.0
python 3.12.6
ruby 3.4.1
39 changes: 16 additions & 23 deletions .zshrc
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
#### FIG ENV VARIABLES ####
# Please make sure this block is at the start of this file.
[ -s ~/.fig/shell/pre.sh ] && source ~/.fig/shell/pre.sh
#### END FIG ENV VARIABLES ####
# Q pre block. Keep at the top of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.pre.zsh"
DEFAULT_USER=`whoami`
prompt_context(){}

Expand Down Expand Up @@ -92,28 +90,23 @@ source $ZSH/oh-my-zsh.sh
# alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh"

# >>> conda initialize >>>
# !! Contents within this block are managed by 'conda init' !!
__conda_setup="$('/Users/fabuzaid/anaconda3/bin/conda' 'shell.zsh' 'hook' 2> /dev/null)"
if [ $? -eq 0 ]; then
eval "$__conda_setup"
else
if [ -f "/Users/fabuzaid/anaconda3/etc/profile.d/conda.sh" ]; then
. "/Users/fabuzaid/anaconda3/etc/profile.d/conda.sh"
else
export PATH="/Users/fabuzaid/anaconda3/bin:$PATH"
fi
fi
unset __conda_setup
# <<< conda initialize <<<

POWERLEVEL9K_DISABLE_CONFIGURATION_WIZARD=true

#### FIG ENV VARIABLES ####
# Please make sure this block is at the end of this file.
[ -s ~/.fig/fig.sh ] && source ~/.fig/fig.sh
#### END FIG ENV VARIABLES ####
plugins=(virtualenv)
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status virtualenv)


if [ -f $HOME/dotfiles/.zshrc.local ]; then
source $HOME/dotfiles/.zshrc.local
fi


autoload -U +X bashcompinit && bashcompinit

[[ -f "$HOME/fig-export/dotfiles/dotfile.zsh" ]] && builtin source "$HOME/fig-export/dotfiles/dotfile.zsh"

# Q post block. Keep at the bottom of this file.
[[ -f "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh" ]] && builtin source "${HOME}/Library/Application Support/amazon-q/shell/zshrc.post.zsh"

# Add binaries installed by asdf to path
export PATH="$HOME/.asdf/shims:$PATH"
4 changes: 3 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ ln -sfn ${CURR_DIR}/.inputrc
ln -sfn ${CURR_DIR}/.pyrc
ln -sfn ${CURR_DIR}/.tmux.conf
ln -sfn ${CURR_DIR}/.sqliterc
ln -sfn ${CURR_DIR}/.ctags .ctags
ln -sfn ${CURR_DIR}/.ctags
ln -sfn ${CURR_DIR}/.psqlrc
ln -sfn ${CURR_DIR}/.asdfrc
ln -sfn ${CURR_DIR}/.tool-versions

#(crontab -l 2>/dev/null; echo "1 * * * * ctags -R -o ~/tags ~/src") | crontab -
32 changes: 16 additions & 16 deletions tools-to-install.txt
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
bat: https://github.com/sharkdp/bat
conda: https://docs.conda.io/en/latest/
coreutils: https://formulae.brew.sh/formula/coreutils
curlx: https://curlx.dev/
diff-so-fancy: https://github.com/so-fancy/diff-so-fancy
duf: https://github.com/muesli/duf
exa: https://the.exa.website/
fig: https://fig.io/
fx: https://github.com/antonmedv/fx
ghcup: https://www.haskell.org/ghcup/
jq: https://stedolan.github.io/jq/
nvm: https://github.com/nvm-sh/nvm
oh-my-zsh: https://ohmyz.sh/
powerlevel10k: https://github.com/romkatv/powerlevel10k
ripgrep: https://github.com/BurntSushi/ripgrep
tldr: https://tldr.sh
asdf: https://asdf-vm.com/guide/getting-started.html
bat: https://github.com/sharkdp/bat
conda: https://docs.conda.io/en/latest/
coreutils: https://formulae.brew.sh/formula/coreutils
curlx: https://curlx.dev/
diff-so-fancy: https://github.com/so-fancy/diff-so-fancy
duf: https://github.com/muesli/duf
exa: https://the.exa.website/
fig: https://fig.io/
fx: https://github.com/antonmedv/fx
ghcup: https://www.haskell.org/ghcup/
jq: https://stedolan.github.io/jq/
oh-my-zsh: https://ohmyz.sh/
powerlevel10k: https://github.com/romkatv/powerlevel10k
ripgrep: https://github.com/BurntSushi/ripgrep
tldr: https://tldr.sh

0 comments on commit a99e002

Please sign in to comment.