diff options
| author | Ahmed Abdelhalim <[email protected]> | 2023-03-24 22:49:58 +0100 |
|---|---|---|
| committer | Ahmed Abdelhalim <[email protected]> | 2023-03-24 22:49:58 +0100 |
| commit | c6c7608ff8807855a0f2b6c4889c86e217c188ab (patch) | |
| tree | 7ecb6fdb40a40bf062d08ef5b6feb8e0d8c1835c /.bash_profile | |
| parent | b2247d11091e40c292cea7b0e9943cc287c59537 (diff) | |
Add function to get the bundle id for running apps
Diffstat (limited to '.bash_profile')
| -rw-r--r-- | .bash_profile | 6 |
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/" |
