I’m using Ubuntu and here is some of my bash setup.
# auto check dir
shopt -s autocd
# Run my custom python3 modules located at "/home/kurisu/.scripts/python3"
# $1 is the script name and the remaining params are its optional params
mypy3() {
python3 /home/kurisu/.scripts/python3/$1 $2 $3 $4
}
# Enable iex command history
export ERL_AFLAGS="-kernel shell_history enabled"
# Exporting Env vars located at ~/.env
for file in "$(find $HOME/.env -maxdepth 1 -name '*.sh' -print -quit)"; do source $file; done
# All Elixir/Phoenix stuff
ex="/home/kurisu/projets/elixir"
alias srv="mix phx.server"
alias isrv="iex -S mix phx.server"
alias creat="mix ecto.create"
alias migen="mix ecto.gen.migration"
alias migrate="mix ecto.migrate"
alias drop="mix ecto.drop"
alias setup="mix ecto.setup"
alias rollb="mix ecto.rollback"
alias seeds="mix run priv/repo/seeds.exs"
alias ctext="mix phx.gen.context"
alias html="mix phx.gen.html"
alias schm="mix phx.gen.schema"
alias depg="mix deps.get"
alias depc="mix deps.compile"
alias routes="mix phx.routes"
alias gtxt="mix gettext.extract --merge"
# Secret adventure :)
alias dunnet="emacs -batch -l dunnet"