CodelyTV / dotly

🌚 Modular and easy to customize dotfiles framework
https://codely.com/cursos
MIT License
1.19k stars 116 forks source link

Open folder alias not working on linux #39

Closed nabby27 closed 3 years ago

nabby27 commented 3 years ago

The open command is a mac own command, for linux there is the xdg-open command.

rgomezcasas commented 3 years ago

Could you create an script named https://github.com/CodelyTV/dotly/tree/master/scripts/system/open that checks the SO and then executes one command or another?

Then you can change the o. alias to dot system open 😊

Thanks!

nabby27 commented 3 years ago

@rgomezcasas I have created a folder inside ~/.dotfiles/modules/dotly/scripts called system and inside a script called open, I have also changed the alias of o. for $DOTLY_PATH/bin/dot system open but when executing the alias or the command dot system open I get the error No executable scripts

rgomezcasas commented 3 years ago

Could you try:

cd "$DOTLY_PATH" && git checkout master && git pull

And then again?

nabby27 commented 3 years ago

It continues not working because dotly does not detect the system folder inside scripts with the open script

gtrabanco commented 3 years ago
chmod u+x "$DOTFILES_PATH/scripts/system/open"

That happened to me, is just that you forgot to apply the execution permission to your script.

Try the solution, please.

nabby27 commented 3 years ago

I close this issue because it was a matter of permissions, thanks !!