# Terminal #### Ouvrir une page man dans un fenêtre spécifique: ```bash $ open x-man-page://ls # fonction: function xmanpage() { open x-man-page://$@ ; } ``` #### Ouvrir une page man dans Aperçu: ```bash $ man -t ls | open -f -a "Preview" # fonction: function preman() { man -t "$@" | open -f -a "Preview" ;} ``` #### Obtenir le chemin de la fenêtre courante du Finder: ```bash $ osascript -e 'tell app "Finder" to get posix path of ((target of window 1) as alias)' /Users/bruno/.kymsu/plugins.d/ ``` ```bash # fonction: # prints the path of the front Finder window. Desktop if no window open function pwdf () { osascript <