You are not logged in.
I use my .xinitrc file to launch a few apps before my window manager. I also want to launch a small bash alias I have in my .bashrc, but it does not get launched from .xinitrc. I gather this is because a .bashrc only works from a non-login terminal session. Other than adding my .bashrc alias to a system wide script in say /usr/local/bin is there any other way to do it?
Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.
Offline
If
alias foo="bar baz"
and putting 'foo' doesn't work, put 'bar baz' in .xinitrc.
Offline
Well you shouldn't use aliases in scripts anyways since its slower and less portable to other systems
Are you starting your DE directly at boot? If yes, that might be the problem
Offline
Usually you cannot run a script with aliases. See [man bash]:
Aliases are not expanded when the shell is not interactive, unless the
expand_aliases shell option is set using shopt
Aliases are primarily meant for interactive use on the command line.
To know or not to know ...
... the questions remain forever.
Offline
Use funcs instead of aliases. You can source a file containing funcs and call them as you like.
Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest
Offline