Git/Makefile: Ignore gpstools/, segfault on Linux Mint 19
[sunny256-utils.git] / mc
blob66acfff463d8d40a4e81a93705b09c0fb635d668
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.0
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 else
29 echo mc is not installed here. >&2
30 exit 1
33 # vim: set ts=8 sw=8 sts=8 noet fo+=w tw=79 fenc=UTF-8 :