Permalink
Switch branches/tags
Nothing to show
Find file
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (43 sloc) 1.3 KB
# .bashrc
# Source global definitions
if [ -f /etc/bashrc ]; then
. /etc/bashrc
fi
# User specific aliases and functions
# Shell ENV variables
export HISTFILE=/dev/null
export HISTFILESIZE=0
export PATH="$PATH:$HOME/bin"
# Applications ENV variables
export TERMINAL="gnome-terminal"
export FILE_MANAGER="nautilus --no-desktop"
export EDITOR="vim"
export GUI_EDITOR="gvim"
export BROWSER="chromium-browser"
export EMAIL_CLIENT="evolution"
export IM_CLIENT="pidgin"
export IRC_CLIENT="hexchat --no-plugins"
export MUSIC_PLAYER="rhythmbox"
export VIDEO_PLAYER="mpv"
export TORRENT_CLIENT="transmission-gtk"
export DOCUMENT_EDITOR="libreoffice --writer"
export SPREADSHEET_EDITOR="libreoffice --calc"
export PRESENTATION_EDITOR="libreoffice --impress"
PACKAGE_MANAGERS=(synaptic gpk-application)
for program in ${PACKAGE_MANAGERS[*]}; do
if [[ -x /usr/bin/$program ]]; then
export PACKAGE_MANAGER="$program"
break
fi
done
# Shell ENV variables
export PYTHON_SHELL="python"
export PHP_SHELL="php -a"
export JS_SHELL="js"
export RUBY_SHELL="ripl"
# Aliases
alias forget='ssh-add -D; pkill -HUP gpg-agent'
alias stlink-openocd="openocd -f board/stm32f429discovery.cfg"
alias openocd-telnet="telnet localhost 4444"
alias openocd-gdb='arm-none-eabi-gdb -ex "tar ext :3333"'
alias st-gdb='arm-none-eabi-gdb -ex "tar ext :4242"'