File: mc.bash.txt

package info (click to toggle)
lg-issue65 1-6
  • links: PTS
  • area: main
  • in suites: woody
  • size: 3,776 kB
  • ctags: 230
  • sloc: sh: 171; perl: 133; makefile: 36
file content (14 lines) | stat: -rw-r--r-- 255 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
function mc () {
echo "You want to launch Midnight Commander, or \"mv\" ? [Y|N|mv]"
read sure
case $sure in
        Y|y)  command mc $* ;;
        N|n)  return 0 ;;
        mv)   mv $* ;;
        *)    return 0 ;;
esac
}

# export functions
export -f mc