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
#!/bin/zsh | |
# VS Code Switcher Script | |
# Switches the /usr/local/bin/code symlink between VS Code Stable and Insiders | |
STABLE_PATH="/Applications/Visual Studio Code.app/Contents/Resources/app/bin/code" | |
INSIDERS_PATH="/Applications/Visual Studio Code - Insiders.app/Contents/Resources/app/bin/code" | |
SYMLINK_PATH="/usr/local/bin/code" | |
show_usage() { |
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
# Zsh/Bash prompt line with arrow like segments | |
# Git branch and Node.js version prompt segment functions | |
# Tom Underhill, 2023 | |
# | |
# The `prompt_line` function takes a list of arguments and prints them as segments with an arrow separator. | |
# The arguments are fg color, bg color, text, fg color, bg color, text, ... | |
# | |
# The `os_prompt` function returns a symbol for the running OS. | |
# The `node_version_prompt` function returns the Node.js version prompt. | |
# The `git_branch_prompt` function returns the current Git branch and status or nothing if not in a Git repo. |