man wrapper: man in own window

Alt-F2, man emacs.

well, this does not work. not automatically.

i created a wrapper-script in ~/bin (which is first in my path variable) with the following content:

#!/bin/bash
# mru, jun 2010

# if ! [ -t 0 ]; then
if [ "$DISPLAY" ]; then
 exec gnome-terminal --hide-menubar --title "man $@" -x /usr/bin/man "$@"
else 
 exec /usr/bin/man "$@"
fi

to make it work.

one could use if ! [ -t 0 ]; then to get a normal in-terminal man if in terminal and a seperate gnome-terminal if in X11.

Keine Kommentare:

Kommentar veröffentlichen