mob: Use 4 decimals in SI output
[sunny256-utils.git] / mc
blob4ed2a9efb308acbe758d6d9541855f6441fc86f2
1 #!/bin/sh
3 #==============================================================================
4 # mc
5 # File ID: 6dbf2f84-f7c0-11e2-9a3f-001f3b596ec9
7 # Wrapper for Midnight Commander.
9 # Author: Øyvind A. Holm <sunny@sunbase.org>
10 # License: GNU General Public License version 2 or later.
11 #==============================================================================
13 progname=mc
14 VERSION=0.1.2
16 sess_str="sess -d mc -t c_mc --"
17 test "$1" = "--version" && unset sess_str
18 test "$HISTFILE" = "/dev/null" && unset sess_str
20 if test -x ~/local/bin/mc; then
21 $sess_str ~/local/bin/mc -d "$@"
22 elif test -x /usr/src-other/bin/mc; then
23 $sess_str /usr/src-other/bin/mc -d "$@"
24 elif test -x /usr/local/bin/mc; then
25 $sess_str /usr/local/bin/mc -d "$@"
26 elif test -x /usr/bin/mc; then
27 $sess_str /usr/bin/mc -d "$@"
28 elif test -x /data/data/com.termux/files/usr/bin/mc; then
29 $sess_str /data/data/com.termux/files/usr/bin/mc -b -d "$@"
30 else
31 echo mc is not installed here. >&2
32 exit 1
35 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :