[READ-ONLY] Mirror of https://github.com/mrgnw/dotfiles. My shell customizations - aliases, functions, and themes.
dotfiles
shell
zinit
zsh
566 B
23 lines
1is_macos || return 1
2ICLOUD="$HOME/Library/Mobile Documents/com~apple~CloudDocs"
3EDITOR=code
4
5alias o='open .'
6
7tabs -3
8
9com.which(){
10 local app_name="$*" # src https://unix.stackexchange.com/a/197794/77873
11 osascript -e "id of app \"$app_name\"" # src https://robservatory.com/easily-see-any-apps-bundle-identifier/
12}
13
14# Merge one folder into another.
15merge() {
16 echo "Merging $(basename $1) into $(basename $2)"
17 ditto $@
18 trash $1
19}
20
21sms() {open "sms://open?addresses=$1/&body=$2" }
22
23export PATH="/Applications/Sublime Text.app/Contents/SharedSupport/bin:$PATH"