-
-
Save the-teacher/7838928 to your computer and use it in GitHub Desktop.
console upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
> brew install tmux | |
Example configurations have been installed to: | |
/usr/local/Cellar/tmux/1.8/share/tmux/examples | |
Bash completion has been installed to: | |
/usr/local/etc/bash_completion.d | |
# For mouse support (for switching panes and windows) | |
# Only needed if you are using Terminal.app (iTerm has mouse support) | |
# Install http://www.culater.net/software/SIMBL/SIMBL.php | |
# Then install https://bitheap.org/mouseterm/ | |
# More on mouse support http://floriancrouzat.net/2010/07/run-tmux-with-mouse-support-in-mac-os-x-terminal-app/ | |
###################################### | |
# ~/.tmux.conf | |
###################################### | |
set-option -g mouse-select-pane on | |
set-option -g mouse-select-window on | |
set-window-option -g mode-mouse on | |
# remap prefix to Control + a | |
# bind 'C-a C-a' to type 'C-a' | |
set -g prefix C-a | |
bind C-a send-prefix | |
unbind C-b | |
###################################### | |
# Install Teamocil to pre define workspaces | |
https://github.com/remiprev/teamocil | |
# See http://files.floriancrouzat.net/dotfiles/.tmux.conf for configuration examples | |
# https://gist.github.com/andreyvit/2921703 | |
# GIT autocomplite | |
> curl https://raw.github.com/git/git/master/contrib/completion/git-completion.bash -o ~/.git-completion.bash | |
> echo "source ~/.git-completion.bash" >> ~/.bash_profile | |
# GIT termibal info | |
> touch ~/.git-terminal.bash | |
``` | |
WHITE="\[\033[00m\]" | |
RED="\[\033[31m\]" | |
GREEN="\[\033[32m\]" | |
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\1/' | |
} | |
export PS1="\u@\h $RED\W$WHITE::$GREEN\$(parse_git_branch)$WHITE $ " | |
``` | |
> echo "source ~/.git-terminal.bash" >> ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment