This file contains 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/bash | |
# We Dont the user to run this script as root, but we will ask for it if needed | |
if [ "$EUID" -eq 0 ] && [ "$SUDO_USER" != "" ]; then | |
echo "This script cannot be run with sudo, it will ask for permission whenever needed. Thank you" | |
exit 1 | |
fi | |
# Install zsh with fonts, only if os support apt | |
if command -v apt > /dev/null; then | |
echo "Debian-based system detected" |
This file contains 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/bash | |
args=${@:1} # Capture user-provided arguments | |
os=$(uname -s | tr '[:upper:]' '[:lower:]') | |
arch=$(uname -m | tr '[:upper:]' '[:lower:]') | |
if [ "$arch" = "x86_64" ]; then | |
arch="amd64" | |
fi | |
This file contains 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
' https://medium.com/@bhupathy/install-terminator-on-windows-with-wsl-2826591d2156 | |
set shell = CreateObject("Wscript.Shell") | |
xServerProcessName = "vcxsrv.exe" | |
RunXserverProcess( xServerProcessName ) | |
RunTerminator() | |
KillXserverProcess( xServerProcessName ) |