add mkcd function to bashrc; colored GCC output

This commit is contained in:
Lexi / Zoe 2019-04-22 15:04:07 +02:00
parent 6223f8a91b
commit b1ef189baf
Signed by: binaryDiv
GPG Key ID: F8D4956E224DA232
1 changed files with 9 additions and 0 deletions

View File

@ -30,6 +30,9 @@ man() {
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 # Set default options
alias ls='ls ${LS_OPTS}' alias ls='ls ${LS_OPTS}'
alias grep='grep ${GREP_OPTS}' alias grep='grep ${GREP_OPTS}'
@ -81,6 +84,12 @@ yay() {
# Create and cd to tmp dir # Create and cd to tmp dir
alias cdtmp='cd $(mktemp -d -p ~/tmp/)' alias cdtmp='cd $(mktemp -d -p ~/tmp/)'
# Make dir and cd to it (from Mara)
function mkcd {
mkdir -p "$1"
cd "$1"
}
calc() { calc() {
echo "$@" | bc echo "$@" | bc
} }