From b1ef189baf94fba3a2643587db718b30f45dce88 Mon Sep 17 00:00:00 2001 From: binaryDiv Date: Mon, 22 Apr 2019 15:04:07 +0200 Subject: [PATCH] add mkcd function to bashrc; colored GCC output --- .bashrc | 9 +++++++++ 1 file changed, 9 insertions(+) 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 }