X-Git-Url: https://git.phdru.name/?p=dotfiles.git;a=blobdiff_plain;f=.shellrc;h=e348ff2e60ba6887f7c2734f8971ebbfb82d994f;hp=565347d3eabb9791c7ef235d578395bdb03e3100;hb=50c68a6eb7312765ff12aa7d8c17e664fac98755;hpb=61a0c2379513cbc36effb50e3c7beb5e934e28a0 diff --git a/.shellrc b/.shellrc index 565347d..e348ff2 100644 --- a/.shellrc +++ b/.shellrc @@ -153,15 +153,13 @@ mc() { mc_type="`mc_type.py $mc`" if [ "$mc_type" = old ]; then $mc -P $MC_SLOW $MC_XTERM "$@" > "$MC_PWD_FILE" - rc=$? - MC_FOUND=YES elif [ "$mc_type" = new ]; then $mc -P "$MC_PWD_FILE" $MC_SLOW $MC_XTERM "$@" - rc=$? - MC_FOUND=YES else continue fi + rc=$? + MC_FOUND=YES cd "`cat \"$MC_PWD_FILE\"`" && /bin/rm "$MC_PWD_FILE" break fi