March 3, 201114 yr Salut à tous, j'ai un mal fou de configurer l'utilitaire Midnight Commander (couramment appelé MC) sous debian (ou ubuntu). toutes les fonctionnalité marchent très bien sauf que quand je quitte mc (avec F10) je revient au répertoire par défaut. j'ai lu dans certain forum que c'est lié au shell. si quelqu'un à une solution, ça sera la bien venue. en sachant que j'ai essayer pas mal de distributions et c'est uniquement avec Debian (ou ubuntu) qu'on à ce comportement (ver 4, 5, et 6). Merci d'avance.
November 23, 201114 yr hello, un moyen que j'ai trouvé sous Debian (mais il y a peut-être une manière plus orthodoxe) est de rajouter cet alias (par exemple dans le ~/.bashrc): alias mc='. /usr/share/mc/bin/mc-wrapper.sh' pour info, le contenu de /usr/share/mc/bin/mc-wrapper.sh dans Debian Squeeze: 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"; thenMC_PWD="`cat "$MC_PWD_FILE"`"if test -n "$MC_PWD" && test -d "$MC_PWD"; then cd "$MC_PWD"fiunset MC_PWDfirm -f "$MC_PWD_FILE"unset MC_PWD_FILE
Archived
This topic is now archived and is closed to further replies.