######################################### # Aliases # ######################################### alias gitroot='cd $(git rev-parse --show-toplevel)' alias dc-up="docker-compose up" alias dc-upd="docker-compose up -d" alias dc-down="docker-compose down" if [[ -n "$(command -v nvim)" ]]; then alias oldvim='vim' alias vim='nvim' fi if [[ $(uname -s) != "Darwin" ]]; then alias open="xdg-open" fi