diff --git a/.bashrc b/.bashrc index 35883c6..5497dd9 100644 --- a/.bashrc +++ b/.bashrc @@ -30,6 +30,9 @@ man() { man "$@" } +# colored GCC warnings and errors +export GCC_COLORS='error=01;31:warning=01;35:note=01;36:caret=01;32:locus=01:quote=01' + # Set default options alias ls='ls ${LS_OPTS}' alias grep='grep ${GREP_OPTS}' @@ -81,6 +84,12 @@ yay() { # Create and cd to tmp dir alias cdtmp='cd $(mktemp -d -p ~/tmp/)' +# Make dir and cd to it (from Mara) +function mkcd { + mkdir -p "$1" + cd "$1" +} + calc() { echo "$@" | bc }