顯示具有 tmux 標籤的文章。 顯示所有文章
顯示具有 tmux 標籤的文章。 顯示所有文章

2017年10月19日 星期四

2016年5月26日 星期四

2015年7月20日 星期一

[Tmux] The content of .tmux.conf


# like screen's shortcuts ctrl-a
## unbind C-b
## set -g prefix C-a

# for minicom shortcuts

# export TERM=xterm
# export TERM=screen
bind-key a send-prefix



Multi color when execute tmux
Edit ~/.bashrc

export TERMINFO=/home/happy/OBJ/share/terminfo
export TERM=xterm-256color
export LD_LIBRARY_PATH=/home/happy/OBJ/lib/:$LD_LIBRARY_PATH
export PATH=/home/happy/OBJ/bin/:$PATH

Reference:

2015年1月15日 星期四

[tmux] Tmux with tmuxifier


1. Download tmuxifier
git clone https://github.com/jimeh/tmuxifier.git ~/.tmuxifier


2. vim ~/.profile
[[ -s "$HOME/.tmuxifier/init.sh" ]] && source "$HOME/.tmuxifier/init.sh"
export EDITOR=vim


3.Settings
tmuxifier new-window example
 # set Working Directory is ~/project/example

    window_root "~/project/example"

    # Set Title
    new_window "Example"

    # The horizontal width is 50%.
    split_h 50

    # The vertical hight is 50%.
    split_v 50

    # run 0~2 
    run_cmd "vim" 0
    run_cmd "date" 1
    run_cmd "htop" 2

    # change window to 0
    select_pane 0

    # Window 0 ,enter into VIM editor,Sending edit command to vim.
    send_keys "iI Love Vim"

定義好之後先儲存視窗設定。


4. start to use
Type tmux to login tmux


Load configuration
tmuxifier load-window example


Reference:


1. 使用 tmux 與 tmuxifier 打造 Console 開發環境(比 screen 更棒)