Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it safe to alias open with xdg-open

I want to setup an alias alias open=xdg-open this whould replace the normal linux open command which in turn itself is a symlink to openvt.

I've running a debian wheezy installation with a bash shell. Does Anybody see there possible problems if I do so?

like image 758
zzeroo Avatar asked Sep 08 '12 10:09

zzeroo


1 Answers

Yes it is. Once you alias it, it's valid only for your user.

You cold also add it inside ~/.bashrc, so it will be available only for your user and only for the current shell session (aliasing itself again every time you start a new session).

In some distro, .bashrc loads a file called .bash_aliases for every session. You could also add your alias there.

like image 107
Zagorax Avatar answered Nov 16 '22 01:11

Zagorax