# # ~/.bashrc # # history HISTTIMEFORMAT='%Y-%m-%d %H:%M ' HISTCONTROL="ignoredups" HISTSIZE="100000" export HISTTIMEFORMAT HISTCONTROL HISTSIZE shopt -s cmdhist histappend PATH=$PATH:$HOME/.local/bin:$HOME/bin export PATH # If not running interactively, don't do anything else [[ $- != *i* ]] && return # User specific aliases and functions alias vi="vim" [ -f "${HOME}/.bashrc_local" ] && source "${HOME}/.bashrc_local" # stop quotes around ls which coreutils introduced export QUOTING_STYLE=literal # 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 # prompt #force_color_prompt=yes case "$TERM" in xterm-color|*-256color) color_prompt=yes;; esac if [ -n "$force_color_prompt" ]; then # 'tput setaf 1' attempts to set foreground color using ANSI escape if [ -x /usr/bin/tput ] && tput setaf 1 >&/dev/null; then color_prompt=yes else color_prompt= fi fi if [ "$color_prompt" = yes ]; then PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ ' if [ -x /usr/bin/dircolors ]; then test -r ~/.dircolors \ && eval "$(dircolors -b ~/.dircolors)" \ || eval "$(dircolors -b)" alias ls='ls --color=auto' alias grep='grep --color=auto' alias fgrep='fgrep --color=auto' alias egrep='egrep --color=auto' fi else PS1='\u@\h:\w\$ ' fi # general BC_ENV_ARGS="-l -q" MOZ_DISABLE_PANGO=1 export PS1 BC_ENV_ARGS MOZ_DISABLE_PANGO