75 lines
2 KiB
Bash
75 lines
2 KiB
Bash
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
|
# for examples
|
|
|
|
#if [ -f "$HOME/.at_login" ]; then
|
|
# /bin/bash "$HOME/.at_login"
|
|
#fi
|
|
|
|
if [ -n "$PS1" ]; then
|
|
# don't put duplicate lines in the history. See bash(1) for more options
|
|
# ... or force ignoredups and ignorespace
|
|
HISTCONTROL=ignoredups:ignorespace
|
|
|
|
# append to the history file, don't overwrite it
|
|
shopt -s histappend
|
|
|
|
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
HISTSIZE=1000
|
|
HISTFILESIZE=2000
|
|
|
|
# check the window size after each command and, if necessary,
|
|
# update the values of LINES and COLUMNS.
|
|
shopt -s checkwinsize
|
|
|
|
# make less more friendly for non-text input files, see lesspipe(1)
|
|
[ -x /usr/bin/lesspipe ] && eval "$(SHELL=/bin/sh lesspipe)"
|
|
|
|
if [ -f /usr/share/bash_completion ] && ! shopt -oq posix; then
|
|
. /usr/share/bash_completion
|
|
fi
|
|
|
|
[ -f ~/.bash_ps1 ] && source ~/.bash_ps1
|
|
|
|
# Autojump
|
|
[ -f /etc/profile.d/autojump.bash ] && source /etc/profile.d/autojump.bash
|
|
fi
|
|
|
|
[ -f ~/.bash_sshagent ] && source ~/.bash_sshagent
|
|
|
|
# Aliases
|
|
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
|
|
|
|
export GTK_IM_MODULE=xim
|
|
|
|
export EDITOR=/usr/bin/vim
|
|
|
|
export _JAVA_OPTIONS='-Dawt.useSystemAAFontSettings=on -Dswing.aatext=true -Dswing.defaultlaf=com.sun.java.swing.plaf.gtk.GTKLookAndFeel'
|
|
export ANDROID_HOME=/opt/android-sdk
|
|
|
|
export PATH="$PATH:$HOME/bin"
|
|
export MANPATH="$MANPATH:$HOME/local/man"
|
|
|
|
export TERMINAL="/usr/bin/terminator"
|
|
|
|
export LC_REALUSER='tbastian'
|
|
|
|
# Opam
|
|
which opam > /dev/null 2>&1 && [ -d ~/.opam ] && eval $(opam config env)
|
|
|
|
# Gem
|
|
gempath="$HOME/.gem/ruby"
|
|
if [ -d "$gempath" ] && [ "$(ls -1 $gempath | wc -l)" -gt 0 ]
|
|
then
|
|
cur_version=$(ls -1t $gempath | head -n 1)
|
|
cur_path="$gempath/$cur_version/bin"
|
|
export PATH="$PATH:$cur_path"
|
|
fi
|
|
unset gempath
|
|
|
|
# pip
|
|
export PATH="$PATH:$HOME/.local/bin"
|
|
|
|
# Go
|
|
export GOPATH="$HOME/.go"
|
|
export PATH="$PATH:$HOME/.go/bin"
|