diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-27 14:43:14 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-01-27 17:31:06 -0500 |
commit | 15991190790781d774ae7533fc2287e459943870 (patch) | |
tree | 678bcf9177d4e512db8c9b8e9b6fd386c55cd156 /.config/wmii/fixes.sh | |
parent | bd4948b452a45c70111c51d25b5d51ba75b1116e (diff) |
mv .wmii .config/wmii; ln -s .config/wmii .wmii
Diffstat (limited to '.config/wmii/fixes.sh')
-rw-r--r-- | .config/wmii/fixes.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.config/wmii/fixes.sh b/.config/wmii/fixes.sh new file mode 100644 index 0000000..aa09157 --- /dev/null +++ b/.config/wmii/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 "$@"; } |