# # ~/.bashrc # # history HISTTIMEFORMAT='[%Y-%m-%d %H:%M:%S] ' HISTCONTROL="ignoredups" HISTSIZE="100000" export HISTTIMEFORMAT HISTCONTROL HISTSIZE shopt -s cmdhist histappend PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH # these screw up pipes to sed et. al unalias grep 2>/dev/null unalias egrep 2>/dev/null unalias fgrep 2>/dev/null # If not running interactively, don't do anything else [[ $- != *i* ]] && return # User specific aliases and functions alias ls='ls --color=auto' alias vi="vim" alias ntop="sudo nethogs wlp3s0" alias mirrorme="mplayer -vf mirror -v tv:// -tv device=/dev/video0:driver=v4l2" alias psave="sudo cpupower frequency-set -g powersave" alias pperf="sudo cpupower frequency-set -g performance" alias pcheck="sudo cpupower frequency-info -o" alias words="shuf ~/tmp/words.txt | grep -v \"'s\" | head -21" # stop quotes around ls which coreutils introduced export QUOTING_STYLE=literal # stop paste which readline introduced bind 'set enable-bracketed-paste off' # stop GTK3 disappearing scrollbars export GTK_OVERLAY_SCROLLING=0 # Libreoffice export SAL_USE_VCLPLUGIN=gtk # this messes up git commits via cmdline unset SSH_ASKPASS # mate-terminal is hard coded to 'xterm' if [[ "X${DESKTOP_SESSION}" == "Xmate" ]] || \ [[ "X${XDG_DESKTOP_SESSION}" == "Xmate" ]]; then export TERM=xterm-256color fi # general PS1='[\u@\h $PWD]\n$ ' BC_ENV_ARGS="-l -q" MOZ_DISABLE_PANGO=1 export PS1 BC_ENV_ARGS MOZ_DISABLE_PANGO