You can clone the repository wherever you want, the home directory is recommended.
The bootstrapper script will create symlinks in the home directory to the proper files.
When the git repo is updated, the files will be automatically updated when the session is restarted.
cd; git clone https://github.com/SnapInteractive/dotfiles.git .dotfiles && cd .dotfiles && ./bootstrap.shTo update later on, just run git pull in ~/.dotfiles.
To source these files, type:
cd; mkdir ~/.dotfiles 2> /dev/null && curl -#L https://github.com/SnapInteractive/dotfiles/tarball/master | tar -C ~/.dotfiles -xzv --strip-components 1 && cd ~/.dotfiles && ./bootstrap.shTo update later on, just run that command again, and will create backups to the current files with a *.bak extension.
Including .gitconfig in the setup with the --git options in the bootstrap
cd; git clone https://github.com/SnapInteractive/dotfiles.git .dotfiles && cd .dotfiles && ./bootstrap.sh --gitIncluding .vim and .vimrc in the setup with the --vim options in the bootstrap
cd; git clone https://github.com/SnapInteractive/dotfiles.git .dotfiles && cd .dotfiles && ./bootstrap.sh --vimIncluding all options
cd; git clone https://github.com/SnapInteractive/dotfiles.git .dotfiles && cd .dotfiles && ./bootstrap.sh --vim --gitIf ~/.bash_local_exports exists, it will be sourced before the includes are sourced.
If ~/.bash_local exists, it will be sourced after the includes are sourced.
[exitstatus jobs time load user@host workdir<dirinfo> (git info)]user symbolThe prompt
[06:00:00 0.00 user#host dir<4|2.4Mb> (master %)]λ
[(E:1) 06:00:00 0.00 user#host dir<4|2.4Mb> (master %)]λ
[(E:1) bg:2 06:00:00 0.00 user#host dir<4|2.4Mb> (master %)]λ When on ssh
on ssh ------------┐
[06:00:00 0.00 user@host dir<4|2.4Mb> (master %)]λ When logged in as root user
as root -----------------------------------------┐
[06:00:00 0.00 root@host dir<4|2.4Mb> (master %)]μ When sudo'd
as sudo ----------------┐
[06:00:00 user@host dir]π When on screen
in screen [screen name] -----------┐
[06:00:00 0.00 user@12345.pts-01.host01 dir<4|2.4Mb> (master %)]λ PS2 prompt
[06:00:00 0.00 user#host dir<4|2.4Mb> (master %)]λ a '\
→ bcd'When on screen host is replaced with session name and is underlined.
load = cpu% on cygwin
load = 1 min load avg on *nix/osx
Place these options in ~/.bash_local_exports
Turn off the load indicator (speeds up the cygwin prompt by a bit)
export _PS1_HIDE_LOAD=1Turn off the directory info
export _PS1_HIDE_DIR_INFO=1Monochrome prompt
export _PS1_MONOCHROME=1user@host [database]→
host[database]>
state[repl]#host [database]>
If using the gitconfig included in this repository, it is recommended that the user specific configurations be included in environment variables in ~/.bash_local_exports for portability.
# git based configurations for portable .gitconfig
export GIT_AUTHOR_NAME=""
export GIT_AUTHOR_EMAIL=""
export GIT_COMMITTER_NAME="$GIT_AUTHOR_NAME";
export GIT_COMMITTER_EMAIL="$GIT_AUTHOR_EMAIL";
export GIT_HUB_API_TOKEN=""cd; ln -s ~/.dotfiles/.gitconfig