This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Save screenshots somewere else | |
| defaults write com.apple.screencapture location <path_to_new_loc> | |
| killall SystemUIServer | |
| # Show hidden files in finder | |
| defaults write com.apple.finder AppleShowAllFiles YES | |
| # Keep the dock from sticking open -- not sure it worked | |
| defaults write com.apple.dock autohide-delay -int 0 | |
| defaults write com.apple.dock autohide-time-modifier -float 1.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| git diff --name-only -z main | tr '\n' '\0' | xargs -0 rg 'console.log' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| VERSION="0.0.1" | |
| DATE_STORAGE_FMT='%Y-%m-%dT%H:%M:%S' | |
| if [[ $1 == "-h" || $1 == "--help" ]]; then | |
| echo "Usage: $0 [options] [entry]" | |
| echo "Options:" | |
| echo " -h, --help Show this help message and exit" | |
| echo " -v, --version Show program's version number and exit" | |
| exit 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function pm() { | |
| local pfile=$HOME/.projects | |
| if [[ ! -f $pfile ]]; then | |
| touch $pfile | |
| fi | |
| local usage="Usage: pm [-a|-d|-l|-h] [key] [path]" | |
| # List projects | |
| if [[ $1 == "-l" ]]; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env zsh | |
| # Author: Alexander Ilseman | |
| # Github: @fathergoose | |
| # Date: 2022-10-18 | |
| # Description: This script will update neovim to the latest nightly release | |
| # System: macOS | |
| # Check if neovim is running | |
| if ps aux | awk '{print $11}' | grep -E '^nvim$' > /dev/null ; then |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/usr/bin/env bash | |
| if [ -f .gitignore ] && [ "$1" = "-a" ]; then | |
| echo "File .gitignore already exists. Exiting." | |
| exit 1 | |
| fi | |
| if [ ! -d .git ]; then | |
| echo "No .git directory found. Exiting." | |
| exit 1 | |
| fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /Users/al/local/bin/dock |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Depends on gnu-find | |
| # brew install findutils | |
| ## ~/.zshrc | |
| # autoload bashcompinit | |
| # bashcompinit | |
| # source ~/.config/zsh/bashcompinit/npx.bash | |
| _npx() { |
OlderNewer