Re: [dev] dmenu: patch for including bash aliases

2013-12-26 Thread Samee Zahur
> that in the menu they are shown as alias my-alias='command substitute'. > > However, I would like to just display my-alias. Is this possible? > > Cheers, > > Robert > > > On Monday, 10 June 2013 05:04:58 UTC+2, Samee Zahur wrote: >> >> Thought t

[dev] dmenu: patch for including bash aliases

2013-06-09 Thread Samee Zahur
Thought this would be useful for bash alias lovers with lots of shortcuts in their ~/.bashrc or ~/.bash_aliases (path defined in the $aliases variable below). Cheers! --Samee -#!/bin/sh +#!/bin/bash cachedir=${XDG_CACHE_HOME:-"$HOME/.cache"} if [ -d "$cachedir" ]; then cache=$cachedir/dmenu