- #!/usr/bin/env bash
- cmd="$(dmenu_path | dmenu "$@")"
- [ $? -ne 0 ] && exit 1
- config_file="${XDG_CONFIG_HOME:-"${HOME}/.config"}/dmenu/aliases"
- [ -f "$config_file" ] && source_cmd="source '$config_file'"
- exec bash <<EOF
- shopt -s expand_aliases
- $source_cmd
- alias exec='exec '
- exec $cmd
- EOF
|