htg-public/shell/bashrc_append

36 lines
1.0 KiB
Plaintext

alias l='ls -lhp --color=always --time-style=long-iso'
alias ll='ls -lrthp --color=always --time-style=long-iso'
alias lll='ls -lArthp --color=always --time-style=long-iso'
alias rm='rm -iv'
alias cp='cp -iv'
alias mv='mv -iv'
alias du='du -h --si'
alias df='df -h --si'
alias scp='scp -v'
alias less='less -R'
alias v='vim -R'
alias p='python3'
alias ..='cd ..'
alias ...='cd ../..'
alias c='cc -Wall -g -O0 -std=c11'
alias g='g++ -Wall -g -O0 -std=c++1y -Werror=conversion -Werror=uninitialized'
HISTCONTROL=ignoreboth
TTY=$(tty | grep -o tty)
if [ -z $TTY ]; then
man() {
env LESS_TERMCAP_mb=$'\E[01;31m' \
LESS_TERMCAP_md=$'\E[01;38;5;74m' \
LESS_TERMCAP_me=$'\E[0m' \
LESS_TERMCAP_se=$'\E[0m' \
LESS_TERMCAP_so=$'\E[38;5;246m' \
LESS_TERMCAP_ue=$'\E[0m' \
LESS_TERMCAP_us=$'\E[04;38;5;146m' \
man "$@"
}
fi
PS1='${debian_chroot:+($debian_chroot)}\[\033[01;31m\]\u\[\033[00m\]\[\033[01;34m\]@\[\033[00m\]\[\033[01;31m\]\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '