Git Product home page Git Product logo

term-tools's Introduction

TERM TOOLS

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!

SREENSHOTS

Using vim

Using zsh and autojump

FEATURES

  • Installs and configures autojump, guake, solarized, zsh, oh-my-zsh
  • Syntax highlighting in less
  • Autocomplete in Python shell
  • Shortcuts for git
  • Improved ~/.vimrc key mappings
  • Packages the best Vim plugins: ack autopep8 closetag coffee-script ctrlp django-support easymotion fswitch fugitive gitignore gundo hugefile javascript jedi latex less matchit nerdcommenter nerdtree powerline rainbow-parentheses seek showmarks signify solarized startify supertab surround syntastic tabman tagbar vimux vimux-pyutils yankstack
  • Custom vim scripts: improved text-wrapping with Q, delete-trailing-whitespace, render python lambda as λ, other things I forget
  • Smart ls after cd: if ls takes more than 1 second to respond, it is suppressed
  • More things I can't think of

INSTALLATION INSTRUCTIONS

These instructions are for Ubuntu, but they can be easily adapted for OSX. I have term-tools working on both OSX and Ubuntu.

  1. 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-tools and change them to the new location (sorry).

  2. Install patched Ubuntu fonts for the powerline plugin. Open ubuntu-font-family-0.80/ using the file manager, open each of UbuntuMono-*-Powerline.ttf and click install.

  3. Backup and delete (aka mv) your ~/.zshrc, ~/.vimrc, ~/.gvimrc, ~/.vim, and ~/.tmux.conf files if you have them.

  4. Install everything with ./install.sh. You shouldn't need to run it with sudo, though the script will make calls to sudo internally. It will ask whether each component should be installed. Run with -f to overwrite any existing config you may have.

  5. Make sure that this is added to the end of your ~/.bashrc and ~/.zshrc:

    [[ -s ~/term-tools/config/shrc.sh ]] && source ~/term-tools/config/shrc.sh

    (shrc.sh already includes the autojump include code -- no need to include it twice).

  6. Create a Gnome Terminal profile "solarized", run the installer (installer.sh) in gnome-terminal-colors-solarized, and then make "solarized" the default Gnome Terminal profile. In that profile, make the font Ubuntu Mono for Powerline 13.

  7. 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.

REMOTE SERVER INSTALL

If on a remote server, you can use this to more quickly run the installer:

wget --no-check-certificate https://raw.github.com/seanbell/term-tools/master/install.sh -O - | bash

This will clone the repository to ~/term-tools and then run the installer

USAGE

  1. The Vim commands are detailed in ~/.vimrc

  2. For autojump, use the command j with a substring of the directly you want to visit (that you have previously visited since installing these tools)

SOLUTIONS TO POSSIBLE ISSUES

  • Typing is slow in large directories -- zsh-syntax-highlighting looks at files in the current directory, so the whole terminal becomes slow if ls is slow. If this is an issue for you, remove zsh-syntax-highlighting from the line plugins=( ... ) in ~/.zshrc.

  • The terminal uses the same keybindings as the EDITOR variable (defaults to vim if not set). To use a different set of keybindings (e.g. emacs inside the shell but vim as the EDITOR), add this to your ~/.zshrc and ~/.bashrc (must be before the line that sources ~/term-tools/config/shrc.sh):

     export EDITOR="vim"
     export TERM_EDITOR="emacs"
     

term-tools's People

Stargazers

Herbert Smith avatar

Watchers

Andreas Veit avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.