diff --git a/bash/aliases.bash b/bash/aliases.bash new file mode 100644 index 0000000..7a165f3 --- /dev/null +++ b/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 diff --git a/bash/cargo.bash b/bash/cargo.bash new file mode 100644 index 0000000..7c6fa5c --- /dev/null +++ b/bash/cargo.bash @@ -0,0 +1,7 @@ +## Cargo on path + +if ! [[ "$PATH" =~ "$HOME/.cargo.bin:" ]] +then + PATH="$HOME/.cargo/bin:$PATH" +fi +export PATH diff --git a/bash/history.bash b/bash/history.bash new file mode 100644 index 0000000..9fcc2f0 --- /dev/null +++ b/bash/history.bash @@ -0,0 +1,3 @@ +# History size +HISTSIZE=20000 +HISTFILESIZE=40000 diff --git a/bash/scotty.bash b/bash/scotty.bash new file mode 100644 index 0000000..a333ba1 --- /dev/null +++ b/bash/scotty.bash @@ -0,0 +1,6 @@ +# Scotty + +if hash scotty 2> /dev/null; +then + source <(scotty init bash) +fi diff --git a/bash/starship.bash b/bash/starship.bash new file mode 100644 index 0000000..d87e778 --- /dev/null +++ b/bash/starship.bash @@ -0,0 +1,6 @@ +# Starship prompt + +if hash starship 2> /dev/null; +then + eval "$(starship init bash)" +fi diff --git a/bash/virtualenv.bash b/bash/virtualenv.bash new file mode 100644 index 0000000..7c9fb5f --- /dev/null +++ b/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