вторник, 10 сентября 2013 г.

bash: open Thunar window from here

I'm using Xfce as primary desktop environment and Thunar (default) as GUI file manager. Thunar has a nice feature: terminal emulator can be opened at any directory. It's nice, but sometimes I need to do the opposite, open Thunar window at the directory I'm currently in. I must type thunar to do so and it's too long. Why not reuse dot? That's the feature I miss from Windows command line a lot.

Add this to .bashrc:

function .() {
  if [ $# -eq 0 ]; then
    thunar
  else
    source $*
  fi
}
 
Works nice so far.

Комментариев нет:

Отправить комментарий