Re: Navigate directories with MC
* On 2019 08 Feb 17:48 -0600, Paul Westell wrote: > Both are written with no shebang and have a trailing line. I'm not sure if > Debian still defaults to something other than Bash, you may have to add a > shebang calling Bash (#! /bin/bash) to make these work on a Debian system. By default Debian links /bin/sh to /bin/dash: $ ls -l /bin/sh lrwxrwxrwx 1 root root 4 Jan 17 13:08 /bin/sh -> dash* - Nate -- "The optimist proclaims that we live in the best of all possible worlds. The pessimist fears this is true." Web: http://www.n0nb.us GPG key: D55A8819 GitHub: N0NB signature.asc Description: PGP signature ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Navigate directories with MC
solarflow99 via mc composed on 2019-02-08 14:09 (UTC-0500): > Gilberto F wrote: >> Since when I started using Linux around the 2000s I use mc. I can >> not use Linux if mc is not installed on it. I'm having a hard time >> using mc in Debian 9.x. I browse the directories and when I leave >> the mc I go back to the directory where I called mc. In Slackware, >> mc behaves differently. When I leave the mc I stay in the last >> visited directory. > There is a setting under Options -> Panel Options -> Auto save panels setup I don't think that has anything to do with it. I see the same difference in exit location among various distros, never have figured out what controlled it, but always have had everything labeled auto save disabled. Could this be one of those differences between dash (Debian) and bash (elsewhere)? On openSUSE, /usr/share/mc/mc-wrapper-sh has one more line than Debian. Both have variables containing the string PWD, which I gather could have something to do with start and/or exit location. -- Evolution as taught in public schools is religion, not science. Team OS/2 ** Reg. Linux User #211409 ** a11y rocks! Felix Miata *** http://fm.no-ip.com/ ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Navigate directories with MC
Gilberto F da Silva via mc wrote on 02/08/2019 09:33 AM: Since when I started using Linux around the 2000s I use mc. I can not use Linux if mc is not installed on it. I'm having a hard time using mc in Debian 9.x. I browse the directories and when I leave the mc I go back to the directory where I called mc. In Slackware, mc behaves differently. When I leave the mc I stay in the last visited directory. Slackware has two scripts that accomplish the directory change. Two versions are supplied for each, for Bash and for C-Shell. Permissions should be 755. Both are written with no shebang and have a trailing line. I'm not sure if Debian still defaults to something other than Bash, you may have to add a shebang calling Bash (#! /bin/bash) to make these work on a Debian system. The first is 'mc.sh' which located in "/etc/profile.d" This directory contains the Slackware login scripts. Debian may place these scripts somewhere else. This simply defines an alias, I find it convenient to add mc switches here rather than the command line. The second is 'mc-wrapper.sh' located in "/usr/share/mc/bin/" This is how mc is set to remember the new directory on exit. MC used to remember which pane was active on exit, but this capacity was removed for some reason. MC now opens always with the left pane active, swapping panes if the right pane was active on exit. --- BEGIN '/etc/profile.d/mc.sh' --- alias mc='. /usr/share/mc/bin/mc-wrapper.sh' --- END --- --- BEGIN "mc.sh" with my switches --- alias mc='. /usr/share/mc/bin/mc-wrapper.sh -d -X' --- END --- --- BEGIN '/usr/share/mc/bin/mc-wrapper.sh' --- MC_USER=`id | sed 's/[^(]*(//;s/).*//'` MC_PWD_FILE="${TMPDIR-/tmp}/mc-$MC_USER/mc.pwd.$$" /usr/bin/mc -P "$MC_PWD_FILE" "$@" if test -r "$MC_PWD_FILE"; then MC_PWD="`cat "$MC_PWD_FILE"`" if test -n "$MC_PWD" && test -d "$MC_PWD"; then cd "$MC_PWD" fi unset MC_PWD fi rm -f "$MC_PWD_FILE" unset MC_PWD_FILE unset MC_USER --- END --- Paul ... on an island, somewhere in the Pacific ... ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Re: Navigate directories with MC
There is a setting under Options -> Panel Options -> Auto save panels setup On Fri, Feb 8, 2019 at 9:34 AM Gilberto F da Silva via mc wrote: > Since when I started using Linux around the 2000s I use mc. I can > not use Linux if mc is not installed on it. I'm having a hard time > using mc in Debian 9.x. I browse the directories and when I leave > the mc I go back to the directory where I called mc. In Slackware, > mc behaves differently. When I leave the mc I stay in the last > visited directory. > > -- > > Stela dato:2.458.523,261 Loka tempo:2019-02-08 15:16:29 Vendredo > -==- > O cara só é verdadeiramente ateu quando está muito bem de saúde. > -- Millôr Fernandes > ___ > mc mailing list > https://mail.gnome.org/mailman/listinfo/mc > ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc
Navigate directories with MC
Since when I started using Linux around the 2000s I use mc. I can not use Linux if mc is not installed on it. I'm having a hard time using mc in Debian 9.x. I browse the directories and when I leave the mc I go back to the directory where I called mc. In Slackware, mc behaves differently. When I leave the mc I stay in the last visited directory. -- Stela dato:2.458.523,261 Loka tempo:2019-02-08 15:16:29 Vendredo -==- O cara só é verdadeiramente ateu quando está muito bem de saúde. -- Millôr Fernandes signature.asc Description: PGP signature ___ mc mailing list https://mail.gnome.org/mailman/listinfo/mc