bash: add asdf

This commit is contained in:
2023-07-22 23:02:02 +01:00
parent 3bcc6e0415
commit ac70d282d2
2 changed files with 12 additions and 11 deletions

4
bashrc.d/asdf.bash Normal file
View File

@@ -0,0 +1,4 @@
if [ -d "$HOME/.asdf" ] ; then
. "$HOME/.asdf/asdf.sh"
. "$HOME/.asdf/completions/asdf.bash"
fi

19
install
View File

@@ -65,7 +65,6 @@ else
fi
mkdir -p ~/src/
install_rust_app https://github.com/sharkdp/fd.git ~/src/fd fd
# git-prompt
# if [ ! -e ~/.git-prompt.sh ]; then
@@ -90,18 +89,16 @@ if [ "$(uname -s)" == 'Darwin' ]; then
brew install \
fd ag wget git bat tmux bash-completion \
vim macvim jq
# brew tap universal-ctags/universal-ctags
# brew install --HEAD universal-ctags
else
install_rust_app https://github.com/sharkdp/fd.git ~/src/fd fd
fi
git config --global user.email "paul@blacksun.org.uk"
git config --global user.name "Paul Walker"
git config --global core.pager "delta --line-numbers --dark"
git config --global delta.side-by-side true
git config --global delta.syntax-theme Dracula
# git config --global delta.syntax-theme "Solarized (dark)"
if [ ! -d "$HOME/.asdf" ] ; then
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
fi
if [ ! -d ~/.tmux/plugins/tpm ] ; then
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
@@ -112,14 +109,14 @@ if [ ! -d ~/.tmux/plugins/tpm ] ; then
fi
# Install nvm.
(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash) || exit 1
(curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.3/install.sh | bash) || exit 1
source ./bashrc.d/nvm.bash
# We can't stop nvm appending to bashrc, but we don't need it - the variables nvm writes to .bashrc are already in
# ~/.bashrc.d/nvm.bash
cp bashrc bashrc-bk
nvm install node && nvm use node && npm i -g yarn
nvm install node && nvm use node && corepack enable
cp bashrc-bk bashrc
./install-vim
# ./install-vim