cl search engine

onsdag, februari 18, 2009

small tools for cmdline

Noted at programming.reddit.com about j:

   http://wiki.github.com/rupa/j

the orginal version is:
   http://wiki.github.com/joelthelion/autojump

cd () { builtin cd "$@" && test -n "$1" && { history -s cd 'pwd' ; } ; }
<code>cd() { if [[ $1 == "-" ]]; then pushd; else pushd -n $PWD >/dev/null; builtin cd $1; fi }<br /></code></pre><br /><pre><code>alias dirs='dirs -v'<br /><br />setopt autopushd pushdminus pushdsilent pushdtohome pushdignoredups<br /><br /></code>