Based of https://github.com/Mukul1127/Minecraft-Java-Flags.
Note
Replace -XX:+UseLargePages -XX:LargePageSizeInBytes=2m with -XX:+UseTransparentHugePages on Linux.
| #!/bin/bash | |
| regex='(https?|file)://|(git@)' | |
| git() { | |
| if [[ $1 == 'clone' && $* =~ $regex ]]; then | |
| /bin/git "$@" --filter=tree:0 # or blob:none | |
| else | |
| /bin/git "$@" | |
| fi |
Based of https://github.com/Mukul1127/Minecraft-Java-Flags.
Note
Replace -XX:+UseLargePages -XX:LargePageSizeInBytes=2m with -XX:+UseTransparentHugePages on Linux.
| #!/usr/bin/env bash | |
| export WSLENV=VSCODE_DEV/w:ELECTRON_RUN_AS_NODE/w | |
| VSCODE_PATH="$(dirname "$(dirname "$(realpath "$0")")")" | |
| VSCODE_EXEC="$VSCODE_PATH/Code.exe" | |
| VSCODE_CLI=$(wslpath -w "$VSCODE_PATH/resources/app/out/cli.js") | |
| export VSCODE_DEV= | |
| export ELECTRON_RUN_AS_NODE=1 | |
| check_and_convert_to_windows_path() { |