Skip to content

Instantly share code, notes, and snippets.

@ptbrowne
Last active September 5, 2015 23:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ptbrowne/725da86c91e8df225fcd to your computer and use it in GitHub Desktop.
Save ptbrowne/725da86c91e8df225fcd to your computer and use it in GitHub Desktop.
My config

Config

Editeur: sublime text

sudo add-apt-repository ppa:webupd8team/sublime-text-2
sudo apt-get install sublime-text

Custom keybindings

Install Origami first. Same as in tmux.

[
  { "keys": ["`"], "command": "", "args": {"operand": false} },
  { "keys": ["`", "up"], "command": "travel_to_pane", "args": {"direction": "up"} },
  { "keys": ["`", "right"], "command": "travel_to_pane", "args": {"direction": "right"} },
  { "keys": ["`", "down"], "command": "travel_to_pane", "args": {"direction": "down"} },
  { "keys": ["`", "left"], "command": "travel_to_pane", "args": {"direction": "left"} },
  { "keys": ["`", "s"], "command": "create_pane_with_file", "args": {"direction": "down"} },
  { "keys": ["`", "v"], "command": "create_pane_with_file", "args": {"direction": "right"} },
  { "keys": ["`", "z"], "command": "zoom_pane", "args": {"fraction": 1} },
  { "keys": ["`", "x"], "command": "destroy_pane", "args": {"direction": "self"} },
]

Terminal multiplexer: tmux

tmux sudo apt-get install tmux
wget https://gist.githubusercontent.com/ptbrowne/9704729/raw -O ~/.tmux.conf

Shell: fish

sudo apt-get install fish

wget https://gist.githubusercontent.com/ptbrowne/e5dd7de9c5236863a247/raw/ -O ~/.config/fish/functions/fish_prompt.fish

sudo pip install virtualenv
pip install virtualfish
echo 'eval (python -m virtualfish auto_activation)' >> ~/.config/fish/config.fish 

Crash course

With my config

`c creates a new window (=tab)
`d detaches the current session (you can go again in this session with tmux a -t SESSION_NAME)
`s splits the current pane horizontally
's splits the current pane vertically
'x kills the current pane
`[0-9] goes to the desired window
`[ARROWS] moves between panes
`` writes ` in terminal
`S synchronize all panes in window

Installs

brew install ant
brew install git
brew install graphviz
brew install imagemagick
brew install mongodb
brew install node
brew install redis
brew install htop

npm install -g cordova
npm install -g grunt-cli
npm install -g jshint
npm install -g madge

easy_install pip
pip install virtualenv

sudo gem install compass
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment