Browse Source

Converted all the small bash things I had to... small files

master
Julio Biason 4 years ago
parent
commit
ac4e5b3edc
  1. 10
      bash/aliases.bash
  2. 7
      bash/cargo.bash
  3. 3
      bash/history.bash
  4. 6
      bash/scotty.bash
  5. 6
      bash/starship.bash
  6. 6
      bash/virtualenv.bash

10
bash/aliases.bash

@ -0,0 +1,10 @@
# Rust replacements
if hash exa 2> /dev/null;
then
alias ls="exa"
fi
if hash bat 2> /dev/null;
then
alias cat="bat"
fi

7
bash/cargo.bash

@ -0,0 +1,7 @@
## Cargo on path
if ! [[ "$PATH" =~ "$HOME/.cargo.bin:" ]]
then
PATH="$HOME/.cargo/bin:$PATH"
fi
export PATH

3
bash/history.bash

@ -0,0 +1,3 @@
# History size
HISTSIZE=20000
HISTFILESIZE=40000

6
bash/scotty.bash

@ -0,0 +1,6 @@
# Scotty
if hash scotty 2> /dev/null;
then
source <(scotty init bash)
fi

6
bash/starship.bash

@ -0,0 +1,6 @@
# Starship prompt
if hash starship 2> /dev/null;
then
eval "$(starship init bash)"
fi

6
bash/virtualenv.bash

@ -0,0 +1,6 @@
# VirtualEnv wrapper
if hash ~/.local/bin/virtualenvwrapper.sh 2> /dev/null;
then
export WORKON_HOME=$HOME/.virtualenvs
source ~/.local/bin/virtualenvwrapper.sh
fi
Loading…
Cancel
Save