Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
tree: 90b83057df
Fetching contributors…

Cannot retrieve contributors at this time

90 lines (60 sloc) 1.818 kb
# $HOME/.bashrc for bash-3.0 (or later)
# By Kirill Klenov horneds@gmail.com
# ======================================
# vim:ft=sh:fdm=marker
# Path fixes {{{
# ===============
[ -d "$HOME/bin" ] && PATH="$HOME/bin:$PATH"
[ -d "$HOME/.cabal/bin/" ] && PATH="$HOME/.cabal/bin:$PATH"
# }}}
# if not running interactively, don't do anything
[ -z "$PS1" ] && return
# Define dirs
SOURCEDIR=$HOME/.home
UTILSDIR=$SOURCEDIR/.utils
# Options
. $UTILSDIR/bash/options.sh
# Colors
. $UTILSDIR/bash/colors.sh
# Login screen
. $UTILSDIR/bash/login.sh
# Base promt settings
. $UTILSDIR/bash/ps_base.sh
# Functions
. $UTILSDIR/bash/functions.sh
# Completion
. $UTILSDIR/bash/completion_pip.sh
. $UTILSDIR/bash/completion_makesite.sh
# Git support
. $UTILSDIR/bash/git.sh
# Utitities support {{{
# =====================
# Fast project navigation
PROJECT_DIR=~/Projects/
_cdp_completion() {
local cur="${COMP_WORDS[COMP_CWORD]}"
COMPREPLY=( $(compgen -W "`find $PROJECT_DIR -maxdepth 1 -type d -not -empty`" -- ${cur}) )
}
cdp () { cd $1; }
complete -o default -o nospace -F _cdp_completion cdp
# NodeJS integration
# ==================
if [ -d $HOME/node_modules/.bin ]; then
PATH="$HOME/node_modules/.bin:$PATH"
fi
# Android SDK tools
if [ -d $HOME/Desktop/android-sdk-linux ]; then
PATH="$HOME/Desktop/android-sdk-linux/tools:$HOME/Desktop/android-sdk-linux/platform-tools:$PATH"
fi
# }}}
# Additional sources {{{
# =======================
# bash aliases
[ -f ~/.bash_aliases ] && source ~/.bash_aliases
# bash completion
[ -f /etc/bash_completion ] && source /etc/bash_completion
# local bash settings
[ -f ~/.bash_local ] && source ~/.bash_local
# }}}
# Close promt
PS1="${PS1}\n\$ "
Jump to Line
Something went wrong with that request. Please try again.