49 lines
595 B
Bash
49 lines
595 B
Bash
|
|
#
|
|
# ~/.bashrc
|
|
#
|
|
|
|
# If not running interactively, don't do anything
|
|
[[ $- != *i* ]] && return
|
|
|
|
|
|
#set dircolor to solarized-dark
|
|
#eval `dircolors ~/.dotfiles/gnome-terminal/dircolors-solarized/dircolors.ansi-dark`
|
|
|
|
#export PATH=~/bin:$PATH
|
|
|
|
export EDITOR="nvim"
|
|
|
|
#
|
|
# load aliases
|
|
#
|
|
|
|
source ~/.config/aliases
|
|
|
|
# add ruby to path
|
|
#PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
|
|
|
|
#
|
|
# Prompt
|
|
#
|
|
|
|
exitstatus()
|
|
{
|
|
if [[ $? == 0 ]]; then
|
|
echo ''
|
|
else
|
|
echo '! '
|
|
fi
|
|
}
|
|
|
|
user()
|
|
{
|
|
if [[ $USER == 'roman' ]]; then
|
|
echo ''
|
|
else
|
|
echo '\u@\h '
|
|
fi
|
|
}
|
|
|
|
PS1='[$(exitstatus)$(user)\w]\$ '
|