From 54b9d5d8c6a7b72fb6bfa35dfedc0f915cdafe67 Mon Sep 17 00:00:00 2001 From: eagletmt Date: Fri, 28 Jan 2011 16:03:56 +0900 Subject: [PATCH] zsh, irb, awesome --- awesome/rc.lua | 5 +++-- dot.irbrc | 2 +- dot.zshenv | 2 +- dot.zshrc | 7 +++++-- 4 files changed, 10 insertions(+), 6 deletions(-) diff --git a/awesome/rc.lua b/awesome/rc.lua index bc15cc6..ca962a3 100644 --- a/awesome/rc.lua +++ b/awesome/rc.lua @@ -14,7 +14,8 @@ require('wicked') beautiful.init(awful.util.getdir('config') .. "/themes/default/theme.lua") -- This is used later as the default terminal and editor to run. -terminal = "mlclient" +terminal = "urxvt" +-- terminal = "mlterm" editor = os.getenv("EDITOR") or "nano" editor_cmd = terminal .. " -e " .. editor @@ -366,6 +367,6 @@ client.add_signal("unfocus", function(c) c.border_color = beautiful.border_norma -- }}} -- {{{ Initial process -os.execute('mlterm -j blend') +-- os.execute('mlterm -j blend') -- }}} diff --git a/dot.irbrc b/dot.irbrc index 71f9740..e2875d6 100644 --- a/dot.irbrc +++ b/dot.irbrc @@ -2,4 +2,4 @@ require 'irb/completion' require 'pp' require 'rubygems' IRB.conf[:AUTO_INDENT] = true - +IRB.conf[:SAVE_HISTORY] = 1000 diff --git a/dot.zshenv b/dot.zshenv index 0aa4e36..749d04b 100644 --- a/dot.zshenv +++ b/dot.zshenv @@ -14,7 +14,7 @@ case $(uname) in Linux) manpath=(/usr/share/man(N) $manpath) - path=($HOME/bin(N) $HOME/.cabal/bin(N) /usr/local/bin(N) /usr/lib/perl5/vendor_perl/bin(N) /usr/lib/perl5/site_perl/bin(N) $path) + path=($HOME/bin(N) $HOME/.cabal/bin(N) /usr/local/bin(N) /usr/lib/perl5/vendor_perl/bin(N) /usr/lib/perl5/site_perl/bin(N) /usr/share/java/apache-ant/bin(N) $path) EDITOR='vim'; PAGER='less';; esac diff --git a/dot.zshrc b/dot.zshrc index 8a2b32b..b672eba 100644 --- a/dot.zshrc +++ b/dot.zshrc @@ -16,6 +16,9 @@ compctl -g '*.lzma' unlzma compctl -d make compctl -d locate +# http://memo.officebrook.net/20101117.html#p01 +zstyle ':completion:*' accept-exact '*(N)' + # zsh modules autoload -U zmv zmodload -i zsh/files @@ -38,8 +41,8 @@ alias helpdiff='diff -u <(gunzip -c help.txt.gz) <(./configure --help)' alias g='git' alias c='cabal' alias wmv='noglob zmv -W' -alias pbcopy='xclip -selection clipboard -i' -alias pbpaste='xclip -selection clipboard -o' +[ -x /usr/bin/xclip ] && function pbcopy() { xclip -selection clipboard -i $* } +[ -x /usr/bin/xclip ] && function pbpaste() { xclip -selection clipboard -o $* } GCC_COMMON_OPTIONS='-Wall -Wextra -Wformat=2 -Wcast-qual -Wcast-align \ -Wwrite-strings -Wfloat-equal -Wpointer-arith -Wredundant-decls \