diff --git a/rc/verify_nano_rw.rc b/rc/verify_nano_rw.rc index d8f3912..d852cb5 100644 --- a/rc/verify_nano_rw.rc +++ b/rc/verify_nano_rw.rc @@ -4,7 +4,7 @@ nano () { command nano $* else echo "Unwritable file, openning through sudoedit" - VISUAL=nano command sudoedit $* + VISUAL=nano command sudoedit $(realpath $*) fi else if [ -d "`dirname \"$1\"`" ]; then @@ -28,7 +28,7 @@ vim () { command vim $* else echo "Unwritable file, openning through sudoedit" - VISUAL=vim command sudoedit $* + VISUAL=vim command sudoedit $(realpath $*) fi else if [ -d "`dirname \"$1\"`" ]; then