This repository contains my terminal config and plugins, mostly focused around zsh and vim. Most of this repository is pieced together from existing configurations and hard work by other programmers. Many thanks to those who released their scripts!
- Installs and configures
autojump,guake,solarized,tomorrow,zsh,oh-my-zsh - Syntax highlighting in
less - Autocomplete in Python shell
- Shortcuts for
git - Improved
~/.vimrckey mappings - Packages the best Vim plugins:
closetagcoffee-scriptctrlpeasymotionfswitchfugitivegitignoregundojavascriptlatexlessmatchitnerdcommenternerdtreepowerlinepython-moderainbow-parenthesesshowmarkssolarizedsupertabsurroundsyntastictabmantagbartomorrow-nightyankstackvimux - Custom vim scripts: improved text-wrapping with
Q, delete-trailing-whitespace, render pythonlambdaasλ, other things I forget - Smart
lsaftercd: iflstakes more than 1 second to respond, it is suppressed - More things I can't think of
These instructions are for Ubuntu, but they can be easily adapted for OSX. I
have term-tools working on both OSX and Ubuntu.
-
Checkout term-tools:
cd $HOME; git clone git://github.com/seanbell/term-tools.git
If you want to install these elsewhere, you need to search the scripts for
~/term-toolsand change them to the new location (sorry). -
Install vim:
sudo apt-get install vim-nox
-
Install patched Ubuntu fonts for the
powerlineplugin. Openubuntu-font-family-0.80/using the file manager, open each ofUbuntuMono-*-Powerline.ttfand click install. -
Backup and delete (aka
mv) your~/.zshrc,~/.vimrc,~/.gvimrc,~/.vim, and~/.tmux.conffiles if you have them. -
Install everything with
./install.sh. You shouldn't need to run it withsudo, though the script will make calls tosudointernally. It will ask whether each component should be installed. Run with-fto overwrite any existing config you may have. -
Add this line to your
~/.bashrcand~/.zshrc:source ~/term-tools/config/shrc.sh
(
shrc.shalready includes the autojump include code -- no need to include it twice). Note that if you use installzsh, so you should include the above line in both~/.bashrcand~/.zshrc. -
Create a Gnome Terminal profile "solarized", run the installer (
installer.sh) ingnome-terminal-colors-solarized, and then make "solarized" the default Gnome Terminal profile. In that profile, make the fontUbuntu Mono for Powerline 13. -
Suggested: remap caps lock to escape -- open "keyboard layout" from the Ubuntu menu (super key) choose "options..." then "Caps lock key behavior". Select "make caps lock an additional escape". This is probably the single best improvement I've done to my workflow.
-
The Vim commands are detailed in
~/.vimrc -
For autojump, use the command
jwith a substring of the directly you want to visit (that you have previously visited since installing these tools)
-
Typing is slow in large directories --
zsh-syntax-highlightinglooks at files in the current directory, so the whole terminal becomes slow iflsis slow. If this is an issue for you, removezsh-syntax-highlightingfrom the lineplugins=( ... )in~/.zshrc. -
The terminal uses the same keybindings as the
EDITORvariable (defaults tovimif not set). To use a different set of keybindings (e.g.emacsinside the shell butvimas theEDITOR), add this to your~/.zshrcand~/.bashrc(must be before the line that sources~/term-tools/config/shrc.sh):export EDITOR="vim" export TERM_EDITOR="emacs"

