Skip to content

Instantly share code, notes, and snippets.

@alex-endfinger
Created August 4, 2011 13:51
Show Gist options
  • Save alex-endfinger/1125189 to your computer and use it in GitHub Desktop.
Save alex-endfinger/1125189 to your computer and use it in GitHub Desktop.
.bashrc
# /etc/skel/.bashrc
#
# This file is sourced by all *interactive* bash shells on startup,
# including some apparently interactive shells such as scp and rcp
# that can't tolerate any output. So make sure this doesn't display
# anything or bad things will happen !
# Test for an interactive shell. There is no need to set anything
# past this point for scp and rcp, and it's important to refrain from
# outputting anything in those cases.
if [[ $- != *i* ]] ; then
# Shell is non-interactive. Be done now!
return
fi
# Let's go to the home dir
cd ~
# Put your fun stuff here.
alias ls='ls --color --group-directories-first'
alias ll='ls -lh'
#need to make sure things are where they should be
mount -o remount,rw /
mkdir /media/udrive
mount /dev/sdb /media/udrive
export PATH=~/bin:~/perl5/usr/bin:~/ruby/bin:$PATH
export VIMRUNTIME=/media/udrive/cr48/.vim/vim
export PYTHONPATH=/media/udrive/cr48/lib/python2.6
export PYTHONHOME=/media/udrive/cr48/
export TERM=screen
export LD_LIBRARY_PATH=~/perl5/usr/lib/perl5/core_perl/CORE:~/ruby/lib:~/ruby/rubydep/lib:$LD_LIBRARY_PATH
export PERL5LIB=~/perl5/usr/lib/perl5/core_perl:~/perl5/usr/lib/perl5/site_perl:~/perl5/usr/share/perl5/core_perl:~/perl5/usr/share/perl5/site_perl
export RUBYLIB=~/ruby/lib:/home/chronos/user/ruby/lib/ruby/site_ruby
#make sure we can write to this bitch
if mount | grep '/home/chronos/user.*noexec' > /dev/null
then
sudo mount -i -o remount,exec /home/chronos/user
fi
#start dropbox if it's not running
#for info on how to get dropbox running on ChromeOS go here:
#http://gabeortiz.net/2011/how-to-get-dropbox-working-on-a-cr48-google-chrome-netbook/
if [ -z "$(pgrep dropbox)" ] && [ -d ~/.dropbox-dist ]
then
echo "Starting Dropbox.."
~/.dropbox-dist/dropboxd &
fi
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment