Upgrade yt-dlp to version 2022.11.11
[sunny256-utils.git] / mc
blob447bede5277fd667f53be80e6db8eff7f5c10fbb
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.1
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 -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 :