From c6c7608ff8807855a0f2b6c4889c86e217c188ab Mon Sep 17 00:00:00 2001 From: Ahmed Abdelhalim Date: Fri, 24 Mar 2023 22:49:58 +0100 Subject: Add function to get the bundle id for running apps --- .bash_profile | 6 ++++++ 1 file changed, 6 insertions(+) (limited to '.bash_profile') diff --git a/.bash_profile b/.bash_profile index 27f83c2..e912959 100644 --- a/.bash_profile +++ b/.bash_profile @@ -53,6 +53,12 @@ alias mutt='PINENTRY_USER_DATA=curses neomutt $@' # # look up the original completion command and replace the last with the alias # complete -o bashdefault -o default -o nospace -F __git_wrap__git_main g +# ==== Functions +# get app ID to add to amethyst (apps have to be running) +function appid { + lsappinfo info -only bundleid "$@" | cut -d '"' -f4 +} + # ==== Aliased Directories alias spc="cd ~/Work/Space/" alias mb="cd ~/Work/MBition/" -- cgit v1.2.3