bash: add asdf
This commit is contained in:
4
bashrc.d/asdf.bash
Normal file
4
bashrc.d/asdf.bash
Normal file
@@ -0,0 +1,4 @@
|
|||||||
|
if [ -d "$HOME/.asdf" ] ; then
|
||||||
|
. "$HOME/.asdf/asdf.sh"
|
||||||
|
. "$HOME/.asdf/completions/asdf.bash"
|
||||||
|
fi
|
||||||
19
install
19
install
@@ -65,7 +65,6 @@ else
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
mkdir -p ~/src/
|
mkdir -p ~/src/
|
||||||
install_rust_app https://github.com/sharkdp/fd.git ~/src/fd fd
|
|
||||||
|
|
||||||
# git-prompt
|
# git-prompt
|
||||||
# if [ ! -e ~/.git-prompt.sh ]; then
|
# if [ ! -e ~/.git-prompt.sh ]; then
|
||||||
@@ -90,18 +89,16 @@ if [ "$(uname -s)" == 'Darwin' ]; then
|
|||||||
brew install \
|
brew install \
|
||||||
fd ag wget git bat tmux bash-completion \
|
fd ag wget git bat tmux bash-completion \
|
||||||
vim macvim jq
|
vim macvim jq
|
||||||
|
else
|
||||||
# brew tap universal-ctags/universal-ctags
|
install_rust_app https://github.com/sharkdp/fd.git ~/src/fd fd
|
||||||
# brew install --HEAD universal-ctags
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
git config --global user.email "paul@blacksun.org.uk"
|
git config --global user.email "paul@blacksun.org.uk"
|
||||||
git config --global user.name "Paul Walker"
|
git config --global user.name "Paul Walker"
|
||||||
|
|
||||||
git config --global core.pager "delta --line-numbers --dark"
|
if [ ! -d "$HOME/.asdf" ] ; then
|
||||||
git config --global delta.side-by-side true
|
git clone https://github.com/asdf-vm/asdf.git ~/.asdf
|
||||||
git config --global delta.syntax-theme Dracula
|
fi
|
||||||
# git config --global delta.syntax-theme "Solarized (dark)"
|
|
||||||
|
|
||||||
if [ ! -d ~/.tmux/plugins/tpm ] ; then
|
if [ ! -d ~/.tmux/plugins/tpm ] ; then
|
||||||
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
|
||||||
@@ -112,14 +109,14 @@ if [ ! -d ~/.tmux/plugins/tpm ] ; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Install nvm.
|
# 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
|
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
|
# 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
|
# ~/.bashrc.d/nvm.bash
|
||||||
cp bashrc bashrc-bk
|
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
|
cp bashrc-bk bashrc
|
||||||
|
|
||||||
./install-vim
|
# ./install-vim
|
||||||
|
|||||||
Reference in New Issue
Block a user