diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 14:41:33 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-10-12 14:41:33 -0400 |
commit | b0cdbb3da2c2b36d3c65b00db4eaf5a0d29c2cd6 (patch) | |
tree | 6815d1584f909fd52a87f04de26fc179ae7c163e /.config/wmii-hg/fixes.sh | |
parent | 5f7de477be298f158369862c1a3cc80286fc7e32 (diff) | |
parent | 9413cf45dfc7601ace8d448a026a24073b6d73b4 (diff) |
Merge branch 'thinkpenguin-par'
Diffstat (limited to '.config/wmii-hg/fixes.sh')
-rw-r--r-- | .config/wmii-hg/fixes.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/wmii-hg/fixes.sh b/.config/wmii-hg/fixes.sh new file mode 100644 index 0000000..aa09157 --- /dev/null +++ b/.config/wmii-hg/fixes.sh @@ -0,0 +1,24 @@ +#!/bin/bash +# Fix various deficiencies in either the shell or the filesystem + +## +# Usage: ls DIRECTORY +# Linux's 9p kernel module sometimes omits entries in directory listings +## +unalias ls &>/dev/null +ls() { + real_ls="`which ls` -1F" + [ $# = 0 ] && set -- "`pwd`" + f="${1/#${WMII_DIR}/}" + if [ "$f" = "$1" ]; then + $real_ls "$f" + else + wmiir ls "$f" + fi +} + +## +# Usage: setsid cmd [arguments...] +# I like wmiir's setsid better than linux-utils' +## +setsid() { wmiir setsid "$@"; } |