![]() |
alias startdwm="export MYWM=dwm & startx"
I had made some aliases to my .profile that would create a variable to be used in my .xinitrc file, for trying some new things out, and I found that when I use the aliases I created such as the title of this thread the variable MYWM doesn't get created or changed. I'm thinking that & should not be used here.
Also, unfortunately, I wasn't able to find anything that explained this, or even a listing of bash symbols...Well, I did find one, but it was about how to enter those symbols as characters not what they did. .profile Code:
alias startdwm="export MYWM=dwm & startx".xinitrc Code:
if [ $MYWM = variablename ]Thanks upfront... P.S. For future reference, would anything that is related to scripting belong in the programming section of LQ or would a question like this belong elsewhere? |
To export a variable, use a function instead:
Code:
function startdwm() { |
| All times are GMT -5. The time now is 11:58 PM. |