You are not logged in.
Pages: 1
Topic closed
Hello, I have a .bashrc where I have set some aliases, but these don't work when I run mod+r command from awesome wm, how can I fix this?
Offline
This doesn't work because awful.util.spawn doesn't spawn a shell and it won't work with awful.util.spawn_with_shell because the shell has to be interactive to check for aliases.
But you could either spawn a shell which executes a command in interactive mode, e.g. with bash 'bash -i -c "alias"', or you use functions instead of aliases and use awful.util.spawn_with_shell (didn't try this, not sure it works).
Offline
what i have done so far is adding a script for every alias in /bin/ directory
Offline
can you explain better? thanks
Offline
I'm necroposting because this is the top result on Google and it is not solved.
Here is a solution to have working aliases in awesome run prompt :
edit your ~/.xinitrc, and just before the «exec awesome»
add something like :
source ~/.zshrc if you use zsh
or
source ~/.bashrc
You will then have your $PATH and your aliases working in the Run prompt
ktr
Offline
Hi,
I tried your solution by placing source ~/.bashrc in .xinitrc but I'm still unable to use my aliases with mod+r.
Anything else I could try to get aliases working?
Offline
geekmiki,
Hey, I am going to go ahead and close this thread. It is just too old.
Please feel free to start a new thread, state your problem and, if you feel this thread is relevant, go head and link back to this thread.
Thanks.
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
Pages: 1
Topic closed