add mkcd function to bashrc; colored GCC output
This commit is contained in:
parent
6223f8a91b
commit
b1ef189baf
9
.bashrc
9
.bashrc
|
|
@ -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
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue