Skip to content

Instantly share code, notes, and snippets.

@barelyhuman
Created August 12, 2022 13:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save barelyhuman/123a18332e541ef1ee09a16bb02970cf to your computer and use it in GitHub Desktop.
Save barelyhuman/123a18332e541ef1ee09a16bb02970cf to your computer and use it in GitHub Desktop.
hide arrows for an icon them in vscode
#!/usr/bin/env bash
ext_root="$HOME/.vscode/extensions/"
cd $ext_root
extension_dir=$(ls . | grep miguelsolorio.symbols)
cd $extension_dir
jq -n -f ./src/symbol-icon-theme.json | cat > .tmp
npx json -I -e "this.hidesExplorerArrows=true;" -f .tmp
mv ./src/symbol-icon-theme.json ./src/symbol-icon-theme.json.bak
mv .tmp ./src/symbol-icon-theme.json
cd -
@barelyhuman
Copy link
Author

change line 5 to grep <pattern> to use this for other icon themes, this is currently written for https://marketplace.visualstudio.com/items?itemName=miguelsolorio.symbols

@barelyhuman
Copy link
Author

also,
you'll need jq and node installed since I'm too lazy to write a sed version.

brew install jq

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment