Last active
October 21, 2021 14:26
-
-
Save ozanmuyes/ea92b8eaba34d9c57894f05751270118 to your computer and use it in GitHub Desktop.
Mac OSX 'open' equivalent for Debian
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# echoes '#!/bin/bash xdg-open "$1" &> $HOME/.xdg-open-error &' to /usr/sbin/open | |
echo -e "\043\041/bin/bash\n\nxdg-open \042\044\061\042 &> $HOME/.xdg-open-error &" > ozanmuyes-open | |
sudo mv ozanmuyes-open /usr/sbin/open | |
sudo chmod +x /usr/sbin/open | |
echo -e "\n# Mac OSX \047open\047 equivalent for Debian\nalias 'open'='/usr/sbin/open'" >> $HOME/.bashrc | |
. $HOME/.bashrc | |
echo "OK" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Usage
Download
Change Mod
Run
Altogether