dotfiles/.config/dmenu/dmenu_run_with_aliases

9 lines
291 B
Bash
Executable file

#!/usr/bin/env zsh
if [[ -f $HOME/.zsh_alias ]]; then
source $HOME/.zsh_alias
fi
command_to_run=$({ alias | awk '{split($0,alias,"="); print alias[1];}' ; dmenu_path ; } | sort | dmenu -i -fn Hack -nb "#282a36" -nf "#f8f8f2" -sb "#44475a" -sf "#f8f8f2" "$@")
eval ${command_to_run} &