summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAhmed Abdelhalim <[email protected]>2023-03-24 22:49:58 +0100
committerAhmed Abdelhalim <[email protected]>2023-03-24 22:49:58 +0100
commitc6c7608ff8807855a0f2b6c4889c86e217c188ab (patch)
tree7ecb6fdb40a40bf062d08ef5b6feb8e0d8c1835c
parentb2247d11091e40c292cea7b0e9943cc287c59537 (diff)
Add function to get the bundle id for running apps
-rw-r--r--.bash_profile6
1 files changed, 6 insertions, 0 deletions
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/"