I have aliases in my bashrc for a few programs.

One example is: alias chrome='google-chrome --disk-cache-size=1000000000'

How can I call this alias from the run prompt (modkey+r)?

Im running linux mint

  • This depends of your window manager. I suggest you to place this key information within your question.
    – dan
    Feb 22, 2014 at 16:56
  • 1
    ahem "Awesome WM: ..." Feb 24, 2014 at 14:04

1 Answer 1


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 spawn a shell which executes a command in interactive mode, e.g.

source ~/.bash_aliases
eval "$@"

you could also edit your ~/.xinitrc, and before the «exec awesome» add something like

source ~/.bashrc

This will work with startx. If you use a display manager, changes should be added in /etc/X11/Xsession.d

Either inside the awesome or the aliases scripts.

Source: https://bbs.archlinux.org/viewtopic.php?id=118693

  • Excuse me for asking but what kind of changes in /etc/X11/Xsession.d? I'm not clear on what exactly I would be doing with this. Feb 26, 2014 at 12:55
  • 1
    In Xsession.d there is an "aliases" script and an awesome script... Both should be called when you start awesome with a desktop manager. You add your global aliases there, or make a call to your user aliases script.
    – xvan
    Mar 4, 2014 at 19:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .