diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-15 20:27:06 -0400 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2012-10-15 20:27:06 -0400 |
commit | 0ce7b10e4804e1cc5e7410ee0b9817889c7c721c (patch) | |
tree | 8fdbc3c24a1d89dae04e0cfe9239b647c7427af6 /.wmii/fixes.sh | |
parent | 33febe8b8a5a6a237d6e3617f7c96e783a548378 (diff) | |
parent | 3515a46d330af1d09bf1e0b963c13a86c2dbe8a8 (diff) |
Merge branch 'master' into thinkpenguin-par-2
Diffstat (limited to '.wmii/fixes.sh')
-rw-r--r-- | .wmii/fixes.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/.wmii/fixes.sh b/.wmii/fixes.sh new file mode 100644 index 0000000..aa09157 --- /dev/null +++ b/.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 "$@"; } |