From 4bfd81c1aa592c404142ca6d246d209b12e9a60d Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 7 Sep 2012 14:37:37 +0900 Subject: [PATCH 1/4] update __my_battery_status --- bashrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bashrc b/bashrc index 0c3ec72..24095e3 100755 --- a/bashrc +++ b/bashrc @@ -499,7 +499,7 @@ winln(){ __my_battery_status(){ local dir=/sys/class/power_supply/BAT0 - if test -d $dir + if test -d $dir && test -r $dir/status && test -r $dir/charge_full && test -r $dir/charge_now then local st=$(cat $dir/status) local full=$(cat $dir/charge_full) From 2b9eda41736ffa29beaba2dc70b2ce50146e5841 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Fri, 7 Sep 2012 14:55:46 +0900 Subject: [PATCH 2/4] fix tmux default color --- tmux.conf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tmux.conf b/tmux.conf index c8a595f..3a771d2 100644 --- a/tmux.conf +++ b/tmux.conf @@ -20,7 +20,7 @@ set message-fg yellow set -g set-titles on set -g status-bg green -set -g status-fg white +set -g status-fg black if "test `hostname` = arch-aspireone" "set -g status-bg blue" if "test `hostname` = darwin-mba.local" "set -g status-bg yellow; set -g status-fg black" if "test `hostname` = newkiwi" "set -g status-bg magenta" From 25e221ccd7bba7d13d7c3447e9f1e384488d4456 Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 8 Sep 2012 15:00:31 +0900 Subject: [PATCH 3/4] fix open_file --- bashrc | 1 + 1 file changed, 1 insertion(+) diff --git a/bashrc b/bashrc index 24095e3..48bdc4a 100755 --- a/bashrc +++ b/bashrc @@ -386,6 +386,7 @@ open_file(){ open "$@" elif islinux then + touch "$@" if null type pcmanfm; then LC_MESSAGES= pcmanfm "$@" else From 7ff9fea4974b3bdde2b801439aa573aefa27950e Mon Sep 17 00:00:00 2001 From: 10sr <8slashes+git@gmail.com> Date: Sat, 8 Sep 2012 15:24:20 +0900 Subject: [PATCH 4/4] fix tmux color --- tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tmux.conf b/tmux.conf index 3a771d2..a81b049 100644 --- a/tmux.conf +++ b/tmux.conf @@ -20,9 +20,9 @@ set message-fg yellow set -g set-titles on set -g status-bg green -set -g status-fg black +set -g status-fg white if "test `hostname` = arch-aspireone" "set -g status-bg blue" if "test `hostname` = darwin-mba.local" "set -g status-bg yellow; set -g status-fg black" -if "test `hostname` = newkiwi" "set -g status-bg magenta" +if "test `hostname` = newkiwi" "set -g status-bg magenta; set -g status-fg white" if "test -f /opt/local/bin/reattach-to-user-namespace" "set-option -g default-command '/opt/local/bin/reattach-to-user-namespace bash'"