#!/bin/bash # don't remember duplicate commands or commands starting with spaces export HISTCONTROL=ignoreboth # colored GCC warnings and errors export GCC_COLORS='auto' if command -v xdg-open &> /dev/null; then export BROWSER='xdg-open' fi if command -v vi &> /dev/null; then export EDITOR='vi' fi if [ -f "$HOME/.pythonrc" ]; then export PYTHONSTARTUP="$HOME/.pythonrc" fi if [ -d "$HOME/.config/composer/vendor/bin" ] && [[ ":$PATH:" != *":$HOME/.config/composer/vendor/bin:"* ]]; then export PATH="$PATH:$HOME/.config/composer/vendor/bin" fi # Set up the 'less' pager if command -v lessfile &> /dev/null; then eval "$(lessfile)" fi # use vim as the pager if vimpager is available if [ -x "$HOME/.vim/vimpager" ]; then export PAGER="$HOME/.vim/vimpager" alias less="\$PAGER" # info is broken with vimpager alias info="PAGER=/usr/bin/less info" fi # disable the automatic gst-build prompt override, it interferes with the custom prompt export GST_BUILD_DISABLE_PS1_OVERRIDE="TRUE"