From 05d1c0b31b51b8bc704bd7577b96d9f2d1c26ede Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 30 Aug 2012 15:53:03 +0900 Subject: [PATCH 1/3] set tmux modekey type vi --- tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index 8a5702d..5d322fa 100644 --- a/tmux.conf +++ b/tmux.conf @@ -4,7 +4,7 @@ unbind C-b set -g prefix C-z bind-key C-z send-prefix bind-key C command-prompt "new-window '%%'" -#setw -g mode-keys vi +setw -g mode-keys vi set -g default-command /bin/bash #set -g default-terminal screen-256color From 3f8a22a9a569e1bda23e0c4cb6b566db18244a9a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 30 Aug 2012 16:25:26 +0900 Subject: [PATCH 2/3] fix tmux.conf --- bashrc | 4 ++++ tmux.conf | 1 + 2 files changed, 5 insertions(+) diff --git a/bashrc b/bashrc index ceb302b..98c8b16 100755 --- a/bashrc +++ b/bashrc @@ -72,6 +72,10 @@ if iswindows; then export USER=$USERNAME fi +_tmux_prefs(){ + null type tmux || return 1 + tmux set -g mode-keys vi +} ####################### diff --git a/tmux.conf b/tmux.conf index 5d322fa..720a910 100644 --- a/tmux.conf +++ b/tmux.conf @@ -4,6 +4,7 @@ unbind C-b set -g prefix C-z bind-key C-z send-prefix bind-key C command-prompt "new-window '%%'" + setw -g mode-keys vi set -g default-command /bin/bash From 631834f5a7f202fbb4e2108b1e38d9a46c67671a Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Thu, 30 Aug 2012 21:15:08 +0900 Subject: [PATCH 3/3] add timeformat var --- bashrc | 3 +++ 1 file changed, 3 insertions(+) diff --git a/bashrc b/bashrc index ceb302b..cd5b139 100755 --- a/bashrc +++ b/bashrc @@ -94,6 +94,9 @@ echo ( ! with_coreutils && isdarwin ) || iswindows || _timeoption=" --time-style=long-iso" ( ! with_coreutils && isdarwin ) || _hideoption=" --hide=[A-Z]*" # do not use +_timeformat_iso="%Y-%m-%dT%H:%M:%S%z" +_timeformat_rfc2822="%a, %d %b %Y %T %z" + alias ls="ls -hCF${_coloroption}${_timeoption}" # export GREP_OPTIONS="" alias grep="grep -n${_coloroption}"