Skip to content

Instantly share code, notes, and snippets.

View shaltaev's full-sized avatar

Gleb shaltaev

  • Russia, Moscow
View GitHub Profile
@shaltaev
shaltaev / .zshrc
Created February 4, 2021 11:45
Simple ".zshrc"
setopt prompt_subst
autoload -Uz vcs_info
PR_RST="%f"
FMT_BRANCH="(%{%F{cyan}%}%b %u%c${PR_RST}) "
FMT_ACTION="(%{%F{green}%}%a${PR_RST})"
FMT_UNSTAGED="%{%F{red}%}●"
FMT_STAGED="%{%F{green}%}●"
@shaltaev
shaltaev / Mac OS X: Open in Visual Studio Code
Created August 4, 2019 09:07 — forked from tonysneed/Mac OS X: Open in Visual Studio Code
Add a command to Finder services in Mac OSX to open a folder in VS Code
- Open Automator
- File -> New -> Service
- Change "Service Receives" to "files or folders" in "Finder"
- Add a "Run Shell Script" action
- Change "Pass input" to "as arguments"
- Paste the following in the shell script box: open -n -b "com.microsoft.VSCode" --args "$*"
- Save it as something like "Open in Visual Studio Code"