The way I usually use this is as follows. Change the lines as appropriate for
your system.
-Install Mercurial:
- $ sudo apt-get install mercurial
+Install Git:
+ $ sudo aptitude install git-core
Change into your home directory and make a clone of the repository:
$ cd
- $ hg clone http://delx.cjb.net/hg/hgdotfiles-generic .hgdotfiles-computername
+ $ git clone http://delx.net.au/git/dotfiles .dotfiles
Make a backup of any existing files:
$ mkdir backup
- $ mv .bash* .ssh .vim* .Xresources .xscreensaver .screenrc .pythonrc.py .inputrc .ssh backup
+ $ mv .bash .bash_profile .bashrc .gitconfig .hgrc .inputrc .pythonrc.py .screenrc .terminfo .vim .vimrc backup/
Symlink the config files into your home directory:
- $ for f in $(ls -A .hgdotfiles-computername); do ln -s .hgdotfiles-computername/$i .; done
- $ rm .hg .hgignore
+ $ ln -sf .dotfiles/{.bash,.bash_profile,.bashrc,.gitconfig,.hgrc,.inputrc,.pythonrc.py,.screenrc,.terminfo,.vim,.vimrc} .
+ $ ln -s .dotfiles/.ssh/config .ssh/
-You're done now. You probably want to move your ssh keys back into ~/.ssh
-(which now links to ~/.hgdotfiles-computername/.ssh), as well as add a few
-machine specific configs to the bash init scripts.
-
-Create files in ~/.bash called environment_local, interactive_local, etc to
-do this. Also, learn how to use Mercurial and use it to version control other
-configure files of yours.
-
-For OSX/BSD you probably want to look at http://delx.net.au/hg/hgdotfiles-macosx
-
-Here are some good Mercurial tutorials:
-http://hgbook.red-bean.com/
-http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart
+You can add machine specific configs to the bash init scripts by creating files
+in ~/.bash called environment_local, interactive_local, functions_local, etc
+Also, learn how to use Git and use it to version control other config files
+of yours.
- xterm (same as xterm-debian)
- xterm-color
-My modified terminfos:
- - itermapp
- based on xterm-debian but with a few fixes for iTerm.app
- - xterm-simple
- a simpler profile with less advertised features. It's based on
- xterm-color, which is based on xterm-r6. It has ^? for backspace and ^[[3~
- for delete
+I created xterm-simple. This is a simpler profile with less advertised
+features. It's based on xterm-color, which is based on xterm-r6. It has ^? for
+backspace and ^[[3~ for delete
The following terminfo properties were added: hs, tsl, fsl, dsl. These are for
the terminal status line, in this case the xterm titlebar.
should set TERM=xterm and ensure that backspace/delete send ^? and ^[[3~
respectively. TERM must be set in your console preferences, NOT in bashrc, etc
-If you're running iTerm.app then set TERM to be itermapp. Do this by
-going to Bookmarks-> Manage Profiles-> Terminal Profiles-> Terminal Type
-
If you have problems only on a specific machine, older OSes in particular, try
using TERM=xterm-simple on that machine.
Eg, cp ~/.terminfo/x/xterm-simple ~/.terminfo/x/xterm