refactor: move home scripts to scripts subfolder

This commit is contained in:
Chen Asraf
2022-09-06 15:13:51 +03:00
parent be68350c31
commit d476cd027e
11 changed files with 463 additions and 428 deletions

13
.zshrc
View File

@@ -1,8 +1,11 @@
source $HOME/.dotfiles/exports.sh # must run before zsh_init
source $HOME/.dotfiles/zsh_init.sh
source $HOME/.dotfiles/aliases.sh
source $HOME/.dotfiles/sources.sh
source $HOME/.dotfiles/home.sh
export DOTFILES="$HOME/.dotfiles"
export DOTBIN="$DOTFILES/bin"
source $DOTFILES/exports.sh # must run before zsh_init
source $DOTFILES/zsh_init.sh
source $DOTFILES/aliases.sh
source $DOTFILES/sources.sh
source $DOTFILES/scripts/home/home.sh
# source all files in scripts dir
for file in $DOTFILES/scripts/*; do

View File

@@ -2,28 +2,28 @@
"entries": {
"tap": {
"dart-lang/dart": {
"revision": "f25b3425512ee00872678abb8cc2f66d6fc58547"
"revision": "7b4c1c8d76de38d5c9d02fcf785d5f47363efffb"
},
"heroku/brew": {
"revision": "84a12f2774fa0bcafef32c2936bee15a4fd4a13b"
"revision": "8ad24fa2f75d212786c74ef451599878aabbad13"
},
"homebrew/bundle": {
"revision": "2e38269fe756295375640628b2ef788edc42c312"
"revision": "9fffe077f1a5a722ed5bd26a87ed622e8cb64e0c"
},
"homebrew/cask": {
"revision": "bc836201b79973585f09e54afeff2cf21f024756"
"revision": "f3af2a944e6b26b2762fd99e9d71446b33105f55"
},
"homebrew/cask-versions": {
"revision": "d4fec5e9368aa079926508d19fa3a82de135093b"
"revision": "034586c2a65ec4416b1bb7a67199450966f6544a"
},
"homebrew/core": {
"revision": "638c203439d5f25d5e9177a6dee156bf1804b1a2"
"revision": "7b45a34a86645962ad642cb2e750662a995f076a"
},
"homebrew/services": {
"revision": "a8f4e6d6d30386a5fbb70ba271886dcc1f3ca0f7"
},
"mongodb/brew": {
"revision": "f838b3a3a6c219981b67f5ace828ce4a3314b5ca"
"revision": "b96303fc38c90a73dd7ddb6bdb78c967c32842c8"
}
},
"brew": {
@@ -72,40 +72,40 @@
}
},
"awscli": {
"version": "2.7.25",
"version": "2.7.29",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:cafaafd6c7d6f3cf2cb71d8c67218d5adbdc534b28479df2921693fee4c455f9",
"sha256": "cafaafd6c7d6f3cf2cb71d8c67218d5adbdc534b28479df2921693fee4c455f9"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:8c1c0e3f05bfd472443b9d1a9a133ecfc5e72a88840b60984fb70ceb5623ed3c",
"sha256": "8c1c0e3f05bfd472443b9d1a9a133ecfc5e72a88840b60984fb70ceb5623ed3c"
},
"arm64_big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:f280de6802ba40a64f9a56428ac10d059c698d0379b804bf29075bfe5012e2a5",
"sha256": "f280de6802ba40a64f9a56428ac10d059c698d0379b804bf29075bfe5012e2a5"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:d7a338520864c1ce9e4145addc173b2bd2250c043fb2a68d640e9b269aaaac8c",
"sha256": "d7a338520864c1ce9e4145addc173b2bd2250c043fb2a68d640e9b269aaaac8c"
},
"monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:97aba64c0aecdaa6bbc78d05edf9986fbc5cf758913ef3e3234d6ef72e99005e",
"sha256": "97aba64c0aecdaa6bbc78d05edf9986fbc5cf758913ef3e3234d6ef72e99005e"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:9faacb9058dff181336e9ff87a6690e9ab0d18dc38ce8437a35028ce161171d6",
"sha256": "9faacb9058dff181336e9ff87a6690e9ab0d18dc38ce8437a35028ce161171d6"
},
"big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:1bd47ce2789884614aff2224017f1f599cbc125013d507930cd7a270ced8c0f3",
"sha256": "1bd47ce2789884614aff2224017f1f599cbc125013d507930cd7a270ced8c0f3"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:f25d7c9b09e1dfa6e35129bab5b656e6bba9bee3dfbd8df23cb0eaafec436343",
"sha256": "f25d7c9b09e1dfa6e35129bab5b656e6bba9bee3dfbd8df23cb0eaafec436343"
},
"catalina": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:1951ef0f72ad7c4662c0e35b0f364d6fa79074d0db55a49f5cc1930c6adbc5f4",
"sha256": "1951ef0f72ad7c4662c0e35b0f364d6fa79074d0db55a49f5cc1930c6adbc5f4"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:17822c8ecf49968bc66155404184eb3e96bd6feac3c7f9f23b3aa700a70ce824",
"sha256": "17822c8ecf49968bc66155404184eb3e96bd6feac3c7f9f23b3aa700a70ce824"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:deb8ba6457901609fb71f0dfad7313caf8d99f0f42c8985e18256b62958a57c6",
"sha256": "deb8ba6457901609fb71f0dfad7313caf8d99f0f42c8985e18256b62958a57c6"
"url": "https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:6eda2c552604aa3048772988b19c2cad45e08376ef8189e056928dd373f527d1",
"sha256": "6eda2c552604aa3048772988b19c2cad45e08376ef8189e056928dd373f527d1"
}
}
}
@@ -155,7 +155,7 @@
}
},
"dart-lang/dart/dart": {
"version": "2.17.6",
"version": "2.18.0",
"bottle": false
},
"flex": {
@@ -203,79 +203,79 @@
}
},
"fzf": {
"version": "0.32.1",
"version": "0.33.0",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:475d6e470c916d77c2e41d5a6684e2d8152b541a992eeb9b7a979a28d71b86c4",
"sha256": "475d6e470c916d77c2e41d5a6684e2d8152b541a992eeb9b7a979a28d71b86c4"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:c060989039ef838c48542fe25b68bf45a874f10b3ff8c6d70e5726382936e5b6",
"sha256": "c060989039ef838c48542fe25b68bf45a874f10b3ff8c6d70e5726382936e5b6"
},
"arm64_big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:475d6e470c916d77c2e41d5a6684e2d8152b541a992eeb9b7a979a28d71b86c4",
"sha256": "475d6e470c916d77c2e41d5a6684e2d8152b541a992eeb9b7a979a28d71b86c4"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:c060989039ef838c48542fe25b68bf45a874f10b3ff8c6d70e5726382936e5b6",
"sha256": "c060989039ef838c48542fe25b68bf45a874f10b3ff8c6d70e5726382936e5b6"
},
"monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7",
"sha256": "1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16",
"sha256": "1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16"
},
"big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7",
"sha256": "1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16",
"sha256": "1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16"
},
"catalina": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7",
"sha256": "1159c0ae09118f29f568c854a654ac6004456bf747c19a7df8062ed4a41229e7"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16",
"sha256": "1f16e48fca570e858b8fa11c9eef4c561f7796945a5355feb1a69f9aece42f16"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:4c8ae9c530d8f4e44061f13886be6249b0a2b4bbb399ebab12b126ba4a76e3c0",
"sha256": "4c8ae9c530d8f4e44061f13886be6249b0a2b4bbb399ebab12b126ba4a76e3c0"
"url": "https://ghcr.io/v2/homebrew/core/fzf/blobs/sha256:bd1c9f868dfbffa832b89e1db57883efd9015184a0093762ee319e5d6c2bc6d1",
"sha256": "bd1c9f868dfbffa832b89e1db57883efd9015184a0093762ee319e5d6c2bc6d1"
}
}
}
},
"gcc": {
"version": "12.1.0",
"version": "12.2.0",
"bottle": {
"rebuild": 0,
"rebuild": 1,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:c35b8f83050553d2091b98212ca42fd99f4f01081f2508b372970576605d33f7",
"sha256": "c35b8f83050553d2091b98212ca42fd99f4f01081f2508b372970576605d33f7"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:f37b8d3764f63e11a6e11dc23774eba527453de89fedb4e3b13aa3996059d386",
"sha256": "f37b8d3764f63e11a6e11dc23774eba527453de89fedb4e3b13aa3996059d386"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:eb9373608f61146a507198f50cdb77b340c2229db9c9ec995538fb96e672e840",
"sha256": "eb9373608f61146a507198f50cdb77b340c2229db9c9ec995538fb96e672e840"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:5d98731c711f17707fe13276090a6a3669a9d68e766e56ead8c842465ff164bb",
"sha256": "5d98731c711f17707fe13276090a6a3669a9d68e766e56ead8c842465ff164bb"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:ef8d827aef3df5e5017f019c2d0ae5e3371306305ff2b74c7a1c218ca72a7ab6",
"sha256": "ef8d827aef3df5e5017f019c2d0ae5e3371306305ff2b74c7a1c218ca72a7ab6"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:453199069048503be8f072463aaa3cd60fc2764875528f234374872354528564",
"sha256": "453199069048503be8f072463aaa3cd60fc2764875528f234374872354528564"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:e007ef5a5e327ab01414107b1d1024357c64a70e8175499a8b54018f5ba56808",
"sha256": "e007ef5a5e327ab01414107b1d1024357c64a70e8175499a8b54018f5ba56808"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:1f2aca239e706f455125dcb2c08df7744b8905b5b62d7aed4cdeae6cf5d5fcee",
"sha256": "1f2aca239e706f455125dcb2c08df7744b8905b5b62d7aed4cdeae6cf5d5fcee"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:ef2dc02662386b337ad24247309b4fefc03544c38cba72094a27083edd103423",
"sha256": "ef2dc02662386b337ad24247309b4fefc03544c38cba72094a27083edd103423"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:98f37e3468e2a15343e02f613a2f8d7761d30eead960d04b2317f8292122e9ac",
"sha256": "98f37e3468e2a15343e02f613a2f8d7761d30eead960d04b2317f8292122e9ac"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:07a4be48cab7b15ee9c25ca3fb19cd6eb76d990592a42f3ac71d3c4c58ba7daf",
"sha256": "07a4be48cab7b15ee9c25ca3fb19cd6eb76d990592a42f3ac71d3c4c58ba7daf"
"url": "https://ghcr.io/v2/homebrew/core/gcc/blobs/sha256:c7f773f9af560766b2d971d815a8d224c267088c05ed1f2b864bd1d9ebc26e1a",
"sha256": "c7f773f9af560766b2d971d815a8d224c267088c05ed1f2b864bd1d9ebc26e1a"
}
}
}
@@ -520,40 +520,40 @@
}
},
"guile": {
"version": "3.0.8",
"version": "3.0.8_2",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:dc6e5dccbc34d5171fba0bc0a0f96381dad52a9837b6f0a1aa6eba2851b6137d",
"sha256": "dc6e5dccbc34d5171fba0bc0a0f96381dad52a9837b6f0a1aa6eba2851b6137d"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:56fc54551418481510668be3665501ebae56e681856c761d2246117760e18b7a",
"sha256": "56fc54551418481510668be3665501ebae56e681856c761d2246117760e18b7a"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:f8f697d08fcdc49218fb1a5f708c465e99c0da8ab94d7af8811cd15ec3b22370",
"sha256": "f8f697d08fcdc49218fb1a5f708c465e99c0da8ab94d7af8811cd15ec3b22370"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:e60bb58c6fdfca0d7c5f948cb75dbd2767ba12588d9e60abd55f7cc6d1b089f5",
"sha256": "e60bb58c6fdfca0d7c5f948cb75dbd2767ba12588d9e60abd55f7cc6d1b089f5"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:0d57e1c9dac0badc33a6355444a09c27a5eb79d1eec1ea1afc591b09f964f125",
"sha256": "0d57e1c9dac0badc33a6355444a09c27a5eb79d1eec1ea1afc591b09f964f125"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:73a962893b19f8b57f53183b6366029a65c292fa2dc8fa73ee15d13a897faf7b",
"sha256": "73a962893b19f8b57f53183b6366029a65c292fa2dc8fa73ee15d13a897faf7b"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:e95549a938b1c83eadfd102fd1eeea423416425249825330f607dbaa9ed8bc9b",
"sha256": "e95549a938b1c83eadfd102fd1eeea423416425249825330f607dbaa9ed8bc9b"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:f7b6347634567f73383b9c1d2c1a04168f8a10d352bc386b633b60cf47abaa76",
"sha256": "f7b6347634567f73383b9c1d2c1a04168f8a10d352bc386b633b60cf47abaa76"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:13c2dbd3e20e04169c5bc3047b4f6bec0dd19d0fc7bf6ef5f7f48b917eff008b",
"sha256": "13c2dbd3e20e04169c5bc3047b4f6bec0dd19d0fc7bf6ef5f7f48b917eff008b"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:d797092caee30cc7da0e8c22c2f7416db7f317090832529926acae0a408e1ce7",
"sha256": "d797092caee30cc7da0e8c22c2f7416db7f317090832529926acae0a408e1ce7"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:0a6685530111e6091bd640f119603b6a2f4cb70bfb8cd70532577898a9dbd91b",
"sha256": "0a6685530111e6091bd640f119603b6a2f4cb70bfb8cd70532577898a9dbd91b"
"url": "https://ghcr.io/v2/homebrew/core/guile/blobs/sha256:cac793bc25c769435753ac8a5ca98efe420612f8946b8fa193dc69dd45e12b58",
"sha256": "cac793bc25c769435753ac8a5ca98efe420612f8946b8fa193dc69dd45e12b58"
}
}
}
@@ -755,7 +755,7 @@
}
},
"mongodb/brew/mongodb-community": {
"version": "6.0.0",
"version": "6.0.1",
"bottle": false
},
"mongosh": {
@@ -798,118 +798,118 @@
}
},
"nghttp2": {
"version": "1.48.0",
"version": "1.49.0",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:8cb8572b8604fb7853e326d101d2c3b73edb39848283b5eb395b464e0ecb2682",
"sha256": "8cb8572b8604fb7853e326d101d2c3b73edb39848283b5eb395b464e0ecb2682"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:f6d8130a9f5625f68f6da8b1fd128b8560c410662177dd1eafd0e0887cb45377",
"sha256": "f6d8130a9f5625f68f6da8b1fd128b8560c410662177dd1eafd0e0887cb45377"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:d88fb101954a241441f10d8bf3070d56bb1bf93c0cf13e8a3ffefa5d5ba3d737",
"sha256": "d88fb101954a241441f10d8bf3070d56bb1bf93c0cf13e8a3ffefa5d5ba3d737"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:4d409aa9554e5e0cade07c4d2dec42b77ae992dc2b33af6aaa60788ea3200b32",
"sha256": "4d409aa9554e5e0cade07c4d2dec42b77ae992dc2b33af6aaa60788ea3200b32"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:5c7085f6873d423bdadf6cf67b41d10d9fd4e247b2746a65625380956305c1fa",
"sha256": "5c7085f6873d423bdadf6cf67b41d10d9fd4e247b2746a65625380956305c1fa"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:f47eebd19f84268259673d7469835a4850e3168d1c9b3aaade7f4245c7c376d4",
"sha256": "f47eebd19f84268259673d7469835a4850e3168d1c9b3aaade7f4245c7c376d4"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:ccbeaa80fb930a4818f192f22d886b99933d5f638246696d9c7d54d3990e97d8",
"sha256": "ccbeaa80fb930a4818f192f22d886b99933d5f638246696d9c7d54d3990e97d8"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:c74c2c8f5f93b2ebf0ccb60a16501bbc91f387d1f2debd1faf440fb9416efafc",
"sha256": "c74c2c8f5f93b2ebf0ccb60a16501bbc91f387d1f2debd1faf440fb9416efafc"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:f7ab5fca18a41864eed3d5e4b0aec5d91e4cb7b44bbcda96d257055d2bfc8ba3",
"sha256": "f7ab5fca18a41864eed3d5e4b0aec5d91e4cb7b44bbcda96d257055d2bfc8ba3"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:eedbc417e89dba315bc6e854b8d315967aaf7d509b5060d21f039c9c8d5a068f",
"sha256": "eedbc417e89dba315bc6e854b8d315967aaf7d509b5060d21f039c9c8d5a068f"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:4109b31cf9fa99a29fa49f4ae2208b6853eac48d4c2a269f38ca468d563466bf",
"sha256": "4109b31cf9fa99a29fa49f4ae2208b6853eac48d4c2a269f38ca468d563466bf"
"url": "https://ghcr.io/v2/homebrew/core/nghttp2/blobs/sha256:576e2e477778c8c60a30c0a66d0decf3d79446af450693244f22ea1400534c8e",
"sha256": "576e2e477778c8c60a30c0a66d0decf3d79446af450693244f22ea1400534c8e"
}
}
}
},
"node": {
"version": "18.7.0",
"version": "18.8.0_1",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:5bc3bbc7796679a30ef86748accee8170fad11bccea0fcc1fc129f2a51b4b6fa",
"sha256": "5bc3bbc7796679a30ef86748accee8170fad11bccea0fcc1fc129f2a51b4b6fa"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:043318c98b805ab5629983b2249e901fbf086b91990c5dbf1ce41f4a8be65922",
"sha256": "043318c98b805ab5629983b2249e901fbf086b91990c5dbf1ce41f4a8be65922"
},
"arm64_big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:e29c164c7303516f06817f5b5aeec5e857b53d2f35d20d0eaeb32081a97d3ca9",
"sha256": "e29c164c7303516f06817f5b5aeec5e857b53d2f35d20d0eaeb32081a97d3ca9"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:cc8fd067c37aeeb05dbd880cea65966ea0740b0fd0c0139806f81ce5dd762c42",
"sha256": "cc8fd067c37aeeb05dbd880cea65966ea0740b0fd0c0139806f81ce5dd762c42"
},
"monterey": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:cbcfe985fe9bdc27d487144feffd68e8ae0fdc247c312588ad3cf52e80e02183",
"sha256": "cbcfe985fe9bdc27d487144feffd68e8ae0fdc247c312588ad3cf52e80e02183"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:4c8e0ce38e06adf4e168da3cf4a8e29687f40d787318eea2c42bc6e1368dedf7",
"sha256": "4c8e0ce38e06adf4e168da3cf4a8e29687f40d787318eea2c42bc6e1368dedf7"
},
"big_sur": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:ce4293b284db54f3a1144728a7b0c8226c9fe026847cda4aad50b7a52ca87c1e",
"sha256": "ce4293b284db54f3a1144728a7b0c8226c9fe026847cda4aad50b7a52ca87c1e"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:58e9dc27e8984920ce6e20bafb73fe5ab9b0eff18079c93ed1f624cc54832bc8",
"sha256": "58e9dc27e8984920ce6e20bafb73fe5ab9b0eff18079c93ed1f624cc54832bc8"
},
"catalina": {
"cellar": ":any",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:da43d1de42d234e2385bcbc97b12c63b7592aa7e5489ee02c97e6773487d7888",
"sha256": "da43d1de42d234e2385bcbc97b12c63b7592aa7e5489ee02c97e6773487d7888"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:ebbee625370f3675f616a09956e9c4ac0c5402b4a7c7d143f0a12ea0bceacc47",
"sha256": "ebbee625370f3675f616a09956e9c4ac0c5402b4a7c7d143f0a12ea0bceacc47"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:151dbd4c085946efe2da970d1fbd4859393a7ce72ba7ad68aa0a6b33572ccccf",
"sha256": "151dbd4c085946efe2da970d1fbd4859393a7ce72ba7ad68aa0a6b33572ccccf"
"url": "https://ghcr.io/v2/homebrew/core/node/blobs/sha256:a2922c55090148d57a81bf9eea95437ad3926dcfca508f20f4fc74f1f895db52",
"sha256": "a2922c55090148d57a81bf9eea95437ad3926dcfca508f20f4fc74f1f895db52"
}
}
}
},
"php": {
"version": "8.1.9",
"version": "8.1.10_1",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:e8701152ee05ff4d819b6ada1b7d15de31ac87781c688f3d97a5197f264f890b",
"sha256": "e8701152ee05ff4d819b6ada1b7d15de31ac87781c688f3d97a5197f264f890b"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:dcee33c9f445db3026a7e867805eb8f6d82e9e5599599b8c6cd8645475f7961c",
"sha256": "dcee33c9f445db3026a7e867805eb8f6d82e9e5599599b8c6cd8645475f7961c"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:36bf8050fc82745f228161bccb2f2809e779d5882312e58d727c76dca1410e5c",
"sha256": "36bf8050fc82745f228161bccb2f2809e779d5882312e58d727c76dca1410e5c"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:e0590064cd32f2baa4102fa49c80056f3886a0a89aec0589d0134ecbf0e7923e",
"sha256": "e0590064cd32f2baa4102fa49c80056f3886a0a89aec0589d0134ecbf0e7923e"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:e12ced9f0b71a8cdb27af52054f4a86e498a16016b1730dcb013638a1948eac7",
"sha256": "e12ced9f0b71a8cdb27af52054f4a86e498a16016b1730dcb013638a1948eac7"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:62481320613b19c6ff310bf6ed50c7d2a2253cdbf403af12ec97bccd8a97a84c",
"sha256": "62481320613b19c6ff310bf6ed50c7d2a2253cdbf403af12ec97bccd8a97a84c"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:1d20ec34d98bc28968c625aac6a607d7fd83b82d7bcfe99755baa877c2fb0ffb",
"sha256": "1d20ec34d98bc28968c625aac6a607d7fd83b82d7bcfe99755baa877c2fb0ffb"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:b34d96f7aad3c580a7cbdaadb8054fb9b6872111a5eec8e1bcb4a529970c8e03",
"sha256": "b34d96f7aad3c580a7cbdaadb8054fb9b6872111a5eec8e1bcb4a529970c8e03"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:4ef422ff449d4baa6ab61582f69ad2f46653d1252e8071419bc8e9bfd3d55541",
"sha256": "4ef422ff449d4baa6ab61582f69ad2f46653d1252e8071419bc8e9bfd3d55541"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:cc0b85dcfdd60e1d8d7fa74c9f53be5d249d068835dbc7a81edacb7a076b6c76",
"sha256": "cc0b85dcfdd60e1d8d7fa74c9f53be5d249d068835dbc7a81edacb7a076b6c76"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:12e33f0a4efa81d5dbdcf3ee32dd34042f3945deaa94a80dafd8163952473709",
"sha256": "12e33f0a4efa81d5dbdcf3ee32dd34042f3945deaa94a80dafd8163952473709"
"url": "https://ghcr.io/v2/homebrew/core/php/blobs/sha256:b934a5a4ad2d29b629f83962b57f638a654801d1ba21ba659a42da2e5afe3fae",
"sha256": "b934a5a4ad2d29b629f83962b57f638a654801d1ba21ba659a42da2e5afe3fae"
}
}
},
@@ -1006,79 +1006,79 @@
}
},
"python@3.10": {
"version": "3.10.6_1",
"version": "3.10.6_2",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:4bf124c1807cc11c15b49916d215734925584f581f1589c85c05ac9f2baa207d",
"sha256": "4bf124c1807cc11c15b49916d215734925584f581f1589c85c05ac9f2baa207d"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:6b294c48f986b1b011de46f22d11ad761ac60df2f07385558e3aa8b44f262e82",
"sha256": "6b294c48f986b1b011de46f22d11ad761ac60df2f07385558e3aa8b44f262e82"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:943a7b7b9f09a255eb087de33249c82ff70d091380669446d60c602291cb58f1",
"sha256": "943a7b7b9f09a255eb087de33249c82ff70d091380669446d60c602291cb58f1"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:7bad8c37f59964e6bbae8dea8b8b310242246ac09230d8e639c9d582dd601d17",
"sha256": "7bad8c37f59964e6bbae8dea8b8b310242246ac09230d8e639c9d582dd601d17"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:b142ca7e72014b64b423f6b7785ff69b3b670b7619aec3684f56d8b622127bbf",
"sha256": "b142ca7e72014b64b423f6b7785ff69b3b670b7619aec3684f56d8b622127bbf"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:b7a957238eae1d94961a44e9ede4492ef74170571fe2a7073d16cd3ce9c714a5",
"sha256": "b7a957238eae1d94961a44e9ede4492ef74170571fe2a7073d16cd3ce9c714a5"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:2a2eb351c779256e78e9e70b72c683726918d16b66c15c8721eea5b3e1d392b1",
"sha256": "2a2eb351c779256e78e9e70b72c683726918d16b66c15c8721eea5b3e1d392b1"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:9fed92e77f9ddc047af26eadb5cece99f2a848e86b92bca12814f8952cc41cc7",
"sha256": "9fed92e77f9ddc047af26eadb5cece99f2a848e86b92bca12814f8952cc41cc7"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:9309d4c2f17552321c22b7e8889f2907c2b18716b763004c3aacaf5645fc6c58",
"sha256": "9309d4c2f17552321c22b7e8889f2907c2b18716b763004c3aacaf5645fc6c58"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:3a26f3d3c87234a8ff24d7a8921d913d78a96f48a0ca84a8a4cbb56d067ce46a",
"sha256": "3a26f3d3c87234a8ff24d7a8921d913d78a96f48a0ca84a8a4cbb56d067ce46a"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:809db3634bcdc3d3e5f60f9e0e74124fc7cb6f8c52085daa36acf118d2b64039",
"sha256": "809db3634bcdc3d3e5f60f9e0e74124fc7cb6f8c52085daa36acf118d2b64039"
"url": "https://ghcr.io/v2/homebrew/core/python/3.10/blobs/sha256:bdeff112ecc106278becf0a5930faff225171928bc3e1e2cbc1fed26dbd28b8a",
"sha256": "bdeff112ecc106278becf0a5930faff225171928bc3e1e2cbc1fed26dbd28b8a"
}
}
}
},
"python@3.9": {
"version": "3.9.13_3",
"version": "3.9.13_4",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:c5a2739c0b343e83fbc2ab8449131327c065d04887ad965f0716259bd601e988",
"sha256": "c5a2739c0b343e83fbc2ab8449131327c065d04887ad965f0716259bd601e988"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:be863850ed496aa19533e3ee42ddffae24025bd5f8b23d9c551095c283956cd0",
"sha256": "be863850ed496aa19533e3ee42ddffae24025bd5f8b23d9c551095c283956cd0"
},
"arm64_big_sur": {
"cellar": "/opt/homebrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:705cd27fcae98ddbd236ee987708330cc985cfb9971651b7dec922d893bab887",
"sha256": "705cd27fcae98ddbd236ee987708330cc985cfb9971651b7dec922d893bab887"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:48b1f1909d7493e7381d381f8e4cc4194ebf61cca726d9289e1c68ceca29af58",
"sha256": "48b1f1909d7493e7381d381f8e4cc4194ebf61cca726d9289e1c68ceca29af58"
},
"monterey": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:c4197018f6d860ab6dd32bb069ceb18bbf3b953c8bd7a7363ef3a385697aba71",
"sha256": "c4197018f6d860ab6dd32bb069ceb18bbf3b953c8bd7a7363ef3a385697aba71"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:23a5a4b2109e2e33f1a01e8d16d9ebcf6951b6659ebcfd34f7633eb977c62a8a",
"sha256": "23a5a4b2109e2e33f1a01e8d16d9ebcf6951b6659ebcfd34f7633eb977c62a8a"
},
"big_sur": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:a92af702d576a6d0a06d6275727d6a73920541031893dd9666f32622002581c9",
"sha256": "a92af702d576a6d0a06d6275727d6a73920541031893dd9666f32622002581c9"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:67343d8fc479cba80bc256ab407ad7c168313d39c81ed9e484ceb4daeee16f3e",
"sha256": "67343d8fc479cba80bc256ab407ad7c168313d39c81ed9e484ceb4daeee16f3e"
},
"catalina": {
"cellar": "/usr/local/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:e1207ac106e13b4bf97a19245d0e645a2a01c25aac38587bbd0e266376d6bf7a",
"sha256": "e1207ac106e13b4bf97a19245d0e645a2a01c25aac38587bbd0e266376d6bf7a"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:245c3248cc9520a8fc5a9e454de02518e7d38cc59f320f5ef56759ad57eed21c",
"sha256": "245c3248cc9520a8fc5a9e454de02518e7d38cc59f320f5ef56759ad57eed21c"
},
"x86_64_linux": {
"cellar": "/home/linuxbrew/.linuxbrew/Cellar",
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:00d08ed0a3dd8d80c4945bc7b8d79caadde8c8383230be7175403058fcf9d01f",
"sha256": "00d08ed0a3dd8d80c4945bc7b8d79caadde8c8383230be7175403058fcf9d01f"
"url": "https://ghcr.io/v2/homebrew/core/python/3.9/blobs/sha256:7049cb23471827c80370aac0d91ce432f1efc39d49fa73a197d3a4ddc832f202",
"sha256": "7049cb23471827c80370aac0d91ce432f1efc39d49fa73a197d3a4ddc832f202"
}
}
}
@@ -1137,40 +1137,40 @@
}
},
"tree": {
"version": "2.0.2",
"version": "2.0.3",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"arm64_monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:4067f9a8f40d9bbf337272fcee99df3ad4d055ebbaf7166fed039e1bb1a45cb9",
"sha256": "4067f9a8f40d9bbf337272fcee99df3ad4d055ebbaf7166fed039e1bb1a45cb9"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:2d6f837075c0dc311482fe60a0ecb479f891be53bc846c4ebc4b1094a849300b",
"sha256": "2d6f837075c0dc311482fe60a0ecb479f891be53bc846c4ebc4b1094a849300b"
},
"arm64_big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:332870d58176b70b06af057186afe0fb3168158c51ff2826222dd43fafe582b7",
"sha256": "332870d58176b70b06af057186afe0fb3168158c51ff2826222dd43fafe582b7"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:396aac226fd54af833a2cf5f3fc0985c5b63f234f9455ad481848764fbbf2e80",
"sha256": "396aac226fd54af833a2cf5f3fc0985c5b63f234f9455ad481848764fbbf2e80"
},
"monterey": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:ea1c2527bde7429aef3bc634a0dc52db53616a5d1c2861f6338c5ae3f5539624",
"sha256": "ea1c2527bde7429aef3bc634a0dc52db53616a5d1c2861f6338c5ae3f5539624"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:2514c051ffe6dda5dcdc30d5709e055d6b83c9892648cba17c5ff3f302c73dd5",
"sha256": "2514c051ffe6dda5dcdc30d5709e055d6b83c9892648cba17c5ff3f302c73dd5"
},
"big_sur": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:e4530a4cc9024dafee21609b81b7d10649a1817c7a9c718b697b34d592e45282",
"sha256": "e4530a4cc9024dafee21609b81b7d10649a1817c7a9c718b697b34d592e45282"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:b913d303f43e57c65f661da1e7dd6c00d8e8c0886303c110ac15d4f0ae1e6a8b",
"sha256": "b913d303f43e57c65f661da1e7dd6c00d8e8c0886303c110ac15d4f0ae1e6a8b"
},
"catalina": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:e02fc65aff868fb5813fba17fd6e9db2fbe5ea7bbfb181a768a0f1ab9a6b7467",
"sha256": "e02fc65aff868fb5813fba17fd6e9db2fbe5ea7bbfb181a768a0f1ab9a6b7467"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:e9ace54bd8824cf47f1c0108b7db70aee15436b3c93184ebfc498a3de0d387b8",
"sha256": "e9ace54bd8824cf47f1c0108b7db70aee15436b3c93184ebfc498a3de0d387b8"
},
"x86_64_linux": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:e1d7569f6930271d694e739e93eb026aac1e8b386ee3af8eb9aed9be32cb1865",
"sha256": "e1d7569f6930271d694e739e93eb026aac1e8b386ee3af8eb9aed9be32cb1865"
"url": "https://ghcr.io/v2/homebrew/core/tree/blobs/sha256:a35fc1014f454c3fcb15c176728068def9039f530cbc55d50110ed4e64c03a5d",
"sha256": "a35fc1014f454c3fcb15c176728068def9039f530cbc55d50110ed4e64c03a5d"
}
}
}
@@ -1293,15 +1293,15 @@
}
},
"ruby-build": {
"version": "20220726",
"version": "20220825",
"bottle": {
"rebuild": 0,
"root_url": "https://ghcr.io/v2/homebrew/core",
"files": {
"all": {
"cellar": ":any_skip_relocation",
"url": "https://ghcr.io/v2/homebrew/core/ruby-build/blobs/sha256:c3fcc97d1838bf5442d2100e325b60b4f71d05330baba433dbe9cfb2e4a9745e",
"sha256": "c3fcc97d1838bf5442d2100e325b60b4f71d05330baba433dbe9cfb2e4a9745e"
"url": "https://ghcr.io/v2/homebrew/core/ruby-build/blobs/sha256:5aa86e22c50b2e7ffe5a6315dbacb1193fcec7578833314b706f142076a63a6e",
"sha256": "5aa86e22c50b2e7ffe5a6315dbacb1193fcec7578833314b706f142076a63a6e"
}
}
}
@@ -1353,7 +1353,7 @@
},
"cask": {
"android-platform-tools": {
"version": "33.0.2",
"version": "33.0.3",
"options": {
"full_name": "android-platform-tools"
}
@@ -1375,12 +1375,12 @@
"system": {
"macos": {
"monterey": {
"HOMEBREW_VERSION": "3.5.9",
"HOMEBREW_VERSION": "3.5.10",
"HOMEBREW_PREFIX": "/usr/local",
"Homebrew/homebrew-core": "638c203439d5f25d5e9177a6dee156bf1804b1a2",
"Homebrew/homebrew-core": "7b45a34a86645962ad642cb2e750662a995f076a",
"CLT": "13.4.0.0.1.1651278267",
"Xcode": "13.4",
"macOS": "12.5"
"macOS": "12.5.1"
}
}
}

View File

@@ -39,7 +39,24 @@ alias ggi_gen="$DOTBIN/gi_gen"
alias igi_gen="go install && dgi_gen"
alias filearg "$DOTFILES/scripts/filearg/filearg.sh"
# from https://jarv.is/notes/cool-bash-tricks-for-your-terminal-dotfiles/
alias ip4="curl -4 simpip.com --max-time 2 --proto-default https --silent | prepend 'ipv4: '"
alias ip6="curl -6 simpip.com --max-time 2 --proto-default https --silent | prepend 'ipv6: '"
alias iplocal="ipconfig getifaddr en0 | prepend 'iplocal: '"
alias ip="iplocal; ip4; ip6"
alias afk="/System/Library/CoreServices/Menu\ Extras/User.menu/Contents/Resources/CGSession -suspend"
alias pkgupdate="brew update; brew upgrade; brew cleanup; npm install npm -g; npm update -g; sudo gem update --system; sudo gem update; sudo gem cleanup; sudo softwareupdate -i -a;"
alias pubkey="more ~/.ssh/id_rsa.pub | pbcopy | echo '=> Public key copied to pasteboard.'"
alias gundo="git push -f origin HEAD^:master"
alias unq="sudo xattr -rd com.apple.quarantine"
docker-bash() {
docker exec -ti $1 /bin/bash
}
# Functions
# show all man entries under a specific section
# e.g. mansect 7
mansect() { man -aWS ${1?man section not provided} \* | xargs basename | sed "s/\.[^.]*$//" | sort -u; }
# TODO not working with custom commands...
@@ -52,6 +69,11 @@ tcd() {
cd $OLDPWD
}
# mkdir -p then navigate to said directory
mkcd() {
mkdir -p -- "$1" && cd -P -- "$1"
}
listening() {
if [[ $# -eq 0 ]]; then
lsof -iTCP -sTCP:LISTEN -n -P
@@ -61,3 +83,9 @@ listening() {
echo "Usage: listening [pattern]"
fi
}
# example echo '1' | prepend 'result: '
prepend() {
echo -n "$@"
cat -
}

View File

@@ -5,13 +5,11 @@ export ZSH="$HOME/.oh-my-zsh"
# Misc
export ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE='fg=60'
export DOTFILES="$HOME/.dotfiles"
export MANPATH="$HOME/.dotfiles/man:$MANPATH"
export LDFLAGS="-L/opt/homebrew/opt/flex/lib"
export CPPFLAGS="-I/opt/homebrew/opt/flex/include"
export ANDROID_HOME="$HOME/Library/Android/sdk"
export GOBIN="$HOME/go/bin"
export DOTBIN="$DOTFILES/bin"
# Ruby User Install (for CocoaPods)
export GEM_HOME="$HOME/.gem"

273
home.sh
View File

@@ -1,273 +0,0 @@
cwd="${cwd}"
home() {
if [[ $# -eq 0 ]]; then
echo_red "No command provided. Use -h for options."
return 0
fi
if [[ $# -gt 0 ]]; then
case "$1" in
git | g)
__home_prepare_dir
shift
git $@
__home_revert_dir
;;
status | s)
__home_prepare_dir
git status
__home_revert_dir
;;
push | p)
__home_prepare_dir
git add .
if [[ $# -lt 2 ]]; then
git commit
else
git commit -m "$2"
fi
git push
__home_revert_dir
;;
pull | l)
__home_prepare_dir
git pull
reload-zsh
__home_revert_dir
;;
reload | rz)
reload-zsh
return 0
;;
refresh | rh)
source $DOTFILES/home.sh
return 0
;;
install | i)
__home_do_install
;;
workflows | w)
shift
__home_prepare_dir
__home_workflows $@
__home_revert_dir
;;
brew | b)
shift
sub="$1"
case $sub in
dump)
__home_prepare_dir
brew bundle dump -f --describe
__home_revert_dir
;;
restore)
__home_prepare_dir
brew bundle
__home_revert_dir
;;
esac
;;
help | -h | h)
shift
__home_print_help $@
return 0
;;
*) # unknown option
echo_red "No command or invalid command supplied."
__home_print_help 0
return 1
;;
esac
fi
}
__home_prepare_dir() {
cwd="$(pwd)"
cd "$HOME/.dotfiles"
if [[ "$1" == "-v" ]]; then
echo_cyan "Changed directory to: $HOME/.dotfiles (was: $cwd)"
fi
}
__home_revert_dir() {
cd "$cwd"
if [[ "$1" == "-v" ]]; then
echo_cyan "Returned to previous directory: $cwd"
fi
}
__home_print_help_arg() {
echo_yellow " $1\t$2"
}
__home_do_install() {
__home_prepare_dir
# iTerm dynamic profile
# echo_cyan "Linking Profiles.json..."
# ln -f ./synced/Profiles.json "$HOME/Library/Application Support/iTerm2/DynamicProfiles/Profiles.json"
echo_cyan "Setting default settings..."
source ./defaults.sh
if [[ $? -ne 0 ]]; then
echo_red "Failed to set default settings."
__home_revert_dir
return 1
fi
# Manfile
man_install
# OhMyZsh Plugins
plugin_src=(
"git@github.com:zsh-users/zsh-autosuggestions.git"
"git@github.com:zsh-users/zsh-syntax-highlighting.git"
# "git@github.com:sharkdp/bat.git"
)
plugin_dirnames=(
"zsh-autosuggestions"
"zsh-syntax-highlighting"
# "bat"
)
plugins_dir="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins"
echo_cyan "Installing plugins..."
for ((i = 1; i <= $#plugin_src; i++)); do
zi plugin "${plugin_src[$i]}" "${plugin_dirnames[$i]}"
done
echo_cyan "Done"
cd $cwd
# OhMyZsh Themes
theme_src=(
"git@github.com:halfo/lambda-mod-zsh-theme.git"
)
theme_dirnames=(
"lambda-mod"
)
themes_dir="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes"
echo_cyan "Installing themes..."
for ((i = 1; i <= $#theme_src; i++)); do
zi theme "${theme_src[$i]}" "${theme_dirnames[$i]}"
done
echo_cyan "Done"
# gi_gen
echo_cyan "Downloading gi_gen latest version..."
gi_ver=$(curl -s "https://api.github.com/repos/chenasraf/gi_gen/tags" | jq -r '.[0].name')
ver_file="$DOTFILES/.bin/.gi_gen_version"
touch $ver_file
existing_ver=$(cat $ver_file)
if [[ "$existing_ver" != "$gi_ver" ]]; then
echo_cyan "Downloading gi_gen $gi_ver..."
mkdir -p $DOTBIN
mkdir -p $DOTFILES/.bin
curl -L https://github.com/chenasraf/gi_gen/releases/download/$gi_ver/gi_gen-$gi_ver-macos-arm -o $DOTBIN/gi_gen
chmod +x $DOTBIN/gi_gen
echo $gi_ver >$ver_file
else
echo_cyan "Latest gi_gen version already installed."
fi
echo_cyan "Downloading global npm packages..."
yarn global add typescript tldr@latest simple-scaffold@latest
echo_cyan "Done"
__home_revert_dir
}
__home_print_help() {
__home_prepare_dir -q
if [[ "$1" == "0" ]]; then
man -P cat ./man_src/home.7
else
man ./man_src/home.7
fi
__home_revert_dir -q
}
__home_workflows() {
# The following array values must be in the same order to be matches
# Dev directory of workflow to use as git source directory
workflow_dirs=(
"$HOME/Dev/heb-flip-alfred-workflow"
)
# Repository of workflow to clone from (if dev directory is missing)
workflow_sources=(
"https://github.com/chenasraf/heb-flip-alfred-workflow.git"
)
# IDs of workflows to use (same as in Alfred prefs directory)
workflows_ids=(
"3A312BFD-A5FC-4223-BBFC-400D03F10282"
)
case "$1" in
push | p)
shift
for ((i = 1; i <= $#workflow_dirs; i++)); do
wf_dir="${workflow_dirs[$i]}"
wf_src="${workflow_sources[$i]}"
wf_id="${workflows_ids[$i]}"
echo_cyan "Updating workflow: $wf_id ($wf_src) into $wf_dir..."
if [[ ! -d "$wf_dir" ]]; then
git clone "$wf_src" "$wf_dir"
fi
cp -rf "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/" "$wf_dir/"
git -C "$wf_dir" add .
auto_commit_flag="'Update workflow'"
commit_flag="-m ${1:-$auto_commit_flag}"
eval "git -C '$wf_dir' commit $commit_flag"
git -C "$wf_dir" push origin master
done
;;
pull | l)
shift
for ((i = 1; i <= $#workflow_dirs; i++)); do
wf_dir="${workflow_dirs[$i]}"
wf_src="${workflow_sources[$i]}"
wf_id="${workflows_ids[$i]}"
echo_cyan "Pulling workflow: $wf_id ($wf_src) into $DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/..."
if [[ ! -d "$wf_dir" ]]; then
git clone "$wf_src" "$wf_dir"
fi
cp -rf "$wf_dir/" "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/"
rm -rf "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/.git"
done
;;
esac
}
rhome() {
# echo "Reloading zsh"
# home reload
echo "Reloading home"
home refresh
if [[ $# -gt 0 ]]; then
echo "Running \`home $@\`"
home $@
fi
}

View File

@@ -11,6 +11,6 @@
],
"i18n-ally.sourceLanguage": "he",
"i18n-ally.displayLanguage": "he",
"i18next.i18nPaths": "/Users/chen/Dev/nestify-web/public/locales",
"i18next.i18nPaths": "public/locales",
"i18n-ally.keystyle": "nested",
}

34
scripts/home/_common.sh Normal file
View File

@@ -0,0 +1,34 @@
source $DOTFILES/colors.sh
source $DOTFILES/exports.sh
source $DOTFILES/scripts/zi.sh
__home_prepare_dir() {
cwd="$(pwd)"
cd "$HOME/.dotfiles"
if [[ "$1" == "-v" ]]; then
echo_cyan "Changed directory to: $HOME/.dotfiles (was: $cwd)"
fi
}
__home_revert_dir() {
cd "$cwd"
if [[ "$1" == "-v" ]]; then
echo_cyan "Returned to previous directory: $cwd"
fi
}
__home_print_help_arg() {
echo_yellow " $1\t$2"
}
__home_print_help() {
__home_prepare_dir -q
if [[ "$1" == "0" ]]; then
man -P cat ./man_src/home.7
else
man ./man_src/home.7
fi
__home_revert_dir -q
}

96
scripts/home/home.sh Normal file
View File

@@ -0,0 +1,96 @@
cwd="${cwd}"
source $DOTFILES/scripts/home/_common.sh
home() {
if [[ $# -eq 0 ]]; then
echo_red "No command provided. Use -h for options."
return 0
fi
if [[ $# -gt 0 ]]; then
case "$1" in
git | g)
__home_prepare_dir
shift
git $@
__home_revert_dir
;;
status | s)
__home_prepare_dir
git status
__home_revert_dir
;;
push | p)
__home_prepare_dir
git add .
if [[ $# -lt 2 ]]; then
git commit
else
git commit -m "$2"
fi
git push
__home_revert_dir
;;
pull | l)
__home_prepare_dir
git pull
reload-zsh
__home_revert_dir
;;
reload | rz)
reload-zsh
return 0
;;
refresh | rh)
source $DOTFILES/scripts/home/home.sh
return 0
;;
install | i)
source $DOTFILES/scripts/home/install.sh
;;
workflows | w)
shift
__home_prepare_dir
source $DOTFILES/scripts/home/workflows.sh $@
__home_revert_dir
;;
brew | b)
shift
sub="$1"
case $sub in
dump)
__home_prepare_dir
brew bundle dump -f --describe
__home_revert_dir
;;
restore)
__home_prepare_dir
brew bundle
__home_revert_dir
;;
esac
;;
help | -h | h)
shift
__home_print_help $@
return 0
;;
*) # unknown option
echo_red "No command or invalid command supplied."
__home_print_help 0
return 1
;;
esac
fi
}
rhome() {
# echo "Reloading zsh"
# home reload
echo "Reloading home"
home refresh
if [[ $# -gt 0 ]]; then
echo "Running \`home $@\`"
home $@
fi
}

90
scripts/home/install.sh Executable file
View File

@@ -0,0 +1,90 @@
#!/usr/bin/env zsh
source $DOTFILES/scripts/home/_common.sh
source $DOTFILES/scripts/man.sh
cwd="$(pwd)"
__home_prepare_dir
# iTerm dynamic profile
# echo_cyan "Linking Profiles.json..."
# ln -f ./synced/Profiles.json "$HOME/Library/Application Support/iTerm2/DynamicProfiles/Profiles.json"
echo_cyan "Setting default settings..."
source $DOTFILES/scripts/home/defaults.sh
if [[ $? -ne 0 ]]; then
echo_red "Failed to set default settings."
__home_revert_dir
return 1
fi
# Manfile
man_install
# OhMyZsh Plugins
plugin_src=(
"git@github.com:zsh-users/zsh-autosuggestions.git"
"git@github.com:zsh-users/zsh-syntax-highlighting.git"
# "git@github.com:sharkdp/bat.git"
)
plugin_dirnames=(
"zsh-autosuggestions"
"zsh-syntax-highlighting"
# "bat"
)
plugins_dir="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins"
echo_cyan "Installing plugins..."
for ((i = 1; i <= $#plugin_src; i++)); do
zi plugin "${plugin_src[$i]}" "${plugin_dirnames[$i]}"
done
echo_cyan "Done"
cd $cwd
# OhMyZsh Themes
theme_src=(
"git@github.com:halfo/lambda-mod-zsh-theme.git"
)
theme_dirnames=(
"lambda-mod"
)
themes_dir="${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/themes"
echo_cyan "Installing themes..."
for ((i = 1; i <= $#theme_src; i++)); do
zi theme "${theme_src[$i]}" "${theme_dirnames[$i]}"
done
echo_cyan "Done"
# gi_gen
echo_cyan "Downloading gi_gen latest version..."
gi_ver=$(curl -s "https://api.github.com/repos/chenasraf/gi_gen/tags" | jq -r '.[0].name')
ver_file="$DOTFILES/.bin/.gi_gen_version"
touch $ver_file
existing_ver=$(cat $ver_file)
if [[ "$existing_ver" != "$gi_ver" ]]; then
echo_cyan "Downloading gi_gen $gi_ver..."
mkdir -p $DOTBIN
mkdir -p $DOTFILES/.bin
curl -L https://github.com/chenasraf/gi_gen/releases/download/$gi_ver/gi_gen-$gi_ver-macos-arm -o $DOTBIN/gi_gen
chmod +x $DOTBIN/gi_gen
echo $gi_ver >$ver_file
else
echo_cyan "Latest gi_gen version already installed."
fi
echo_cyan "Downloading global npm packages..."
npm i -g typescript tldr@latest simple-scaffold@latest
echo_cyan "Done"
__home_revert_dir

59
scripts/home/workflows.sh Normal file
View File

@@ -0,0 +1,59 @@
#!/usr/bin/env zsh
source $DOTFILES/scripts/home/_common.sh
# The following array values must be in the same order to be matches
# Dev directory of workflow to use as git source directory
workflow_dirs=(
"$HOME/Dev/heb-flip-alfred-workflow"
)
# Repository of workflow to clone from (if dev directory is missing)
workflow_sources=(
"https://github.com/chenasraf/heb-flip-alfred-workflow.git"
)
# IDs of workflows to use (same as in Alfred prefs directory)
workflows_ids=(
"3A312BFD-A5FC-4223-BBFC-400D03F10282"
)
case "$1" in
push | p)
shift
for ((i = 1; i <= $#workflow_dirs; i++)); do
wf_dir="${workflow_dirs[$i]}"
wf_src="${workflow_sources[$i]}"
wf_id="${workflows_ids[$i]}"
echo_cyan "Updating workflow: $wf_id ($wf_src) into $wf_dir..."
if [[ ! -d "$wf_dir" ]]; then
git clone "$wf_src" "$wf_dir"
fi
cp -rf "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/" "$wf_dir/"
git -C "$wf_dir" add .
auto_commit_flag="'Update workflow'"
commit_flag="-m ${1:-$auto_commit_flag}"
eval "git -C '$wf_dir' commit $commit_flag"
git -C "$wf_dir" push origin master
done
;;
pull | l)
shift
for ((i = 1; i <= $#workflow_dirs; i++)); do
wf_dir="${workflow_dirs[$i]}"
wf_src="${workflow_sources[$i]}"
wf_id="${workflows_ids[$i]}"
echo_cyan "Pulling workflow: $wf_id ($wf_src) into $DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/..."
if [[ ! -d "$wf_dir" ]]; then
git clone "$wf_src" "$wf_dir"
fi
cp -rf "$wf_dir/" "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/"
rm -rf "$DOTFILES/synced/Alfred.alfredpreferences/workflows/user.workflow.$wf_id/.git"
done
;;
esac