瀏覽代碼

Merge branch 'master' of github.com:10sr/dotfiles

pull/1/head
10sr 13 年之前
父節點
當前提交
13faec9367
共有 2 個文件被更改,包括 3 次插入2 次删除
  1. +2
    -1
      bashrc
  2. +1
    -1
      tmux.conf

+ 2
- 1
bashrc 查看文件

@@ -386,6 +386,7 @@ open_file(){
open "$@" open "$@"
elif islinux elif islinux
then then
touch "$@"
if null type pcmanfm; then if null type pcmanfm; then
LC_MESSAGES= pcmanfm "$@" LC_MESSAGES= pcmanfm "$@"
else else
@@ -499,7 +500,7 @@ winln(){


__my_battery_status(){ __my_battery_status(){
local dir=/sys/class/power_supply/BAT0 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 then
local st=$(cat $dir/status) local st=$(cat $dir/status)
local full=$(cat $dir/charge_full) local full=$(cat $dir/charge_full)


+ 1
- 1
tmux.conf 查看文件

@@ -23,6 +23,6 @@ set -g status-bg green
set -g status-fg white set -g status-fg white
if "test `hostname` = arch-aspireone" "set -g status-bg blue" 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` = 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'" if "test -f /opt/local/bin/reattach-to-user-namespace" "set-option -g default-command '/opt/local/bin/reattach-to-user-namespace bash'"

Loading…
取消
儲存