~ajhalili2006/dotfiles-legacy

18da14312f2d1995e4722e1bd4ef394dc315379e — Andrei Jiroh Halili 2 years ago e4793e6 git-stash-archives/new-config-kconsole-before-bootstrap-rewrite
Commit stash before the chaos

Signed-off-by: Andrei Jiroh Halili <ajhalili2006@gmail.com>
2 files changed, 26 insertions(+), 14 deletions(-)

A .config/konsole/Google Cloud Shell.profile
M bootstrap
A .config/konsole/Google Cloud Shell.profile => .config/konsole/Google Cloud Shell.profile +18 -0
@@ 0,0 1,18 @@
[Appearance]
ColorScheme=Linux
Font=Cascadia Mono PL,12,-1,5,50,0,0,0,0,0
TabColor=0,255,0

[General]
Command=$HOME/google-cloud-sdk/bin/gcloud --configuration=ajhalili2006-experiments cloud-shell ssh --authorize-session
Environment=TERM=xterm-256color,COLORTERM=truecolor,KONSOLE=1,TMUX=
Icon=yast-docker
Name=Google Cloud Shell
Parent=FALLBACK/

[Interaction Options]
CtrlRequiredForDrag=false

[Terminal Features]
BlinkingCursorEnabled=true
UrlHintsModifiers=67108864

M bootstrap => bootstrap +8 -14
@@ 5,14 5,6 @@

#set -e

# if undefined, use $HOME/.local
if [[ $PREFIX == "" ]]; then
  export PREFIX="$HOME/.local"
  if [[ ! -d "$PREFIX/bin" ]]; then
    mkdir "$PREFIX/bin" -p
  fi
fi

# Check if we're on Gitpod OR GitHub Codespaces before running the main script
# Note that I can't cover literally everything on automated tests and manual
# runs. You don't want to abuse CI services for the sake of validating every


@@ 76,13 68,15 @@ checkOs() {
    # among other sorts of shitfuckery. We may need to also run tests through the CI to ensure nothing breaks.
    if echo "$OSTYPE" | grep -qE "linux-android.*"; then
        export DOTFILES_OS_NAME=android-termux
    elif echo "$OSTYPE" | grep -qE '^linux-gnu.*' && [ "$(lsb_release -is)" == "Debian" ]; then
        export DOTFILES_OS_NAME=debian
        if  [ -d '/google/devshell' ] && [ -f '/google/devshell/bashrc.google' ]; then
           export GOOGLE_CLOUD_SHELL=true
    elif echo "$OSTYPE" | grep -qE '^linux-gnu.*'; then
        if [ "$(lsb_release -is)" == "Debian" ]; then
           export DOTFILES_OS_NAME=debian
           if  [ -d '/google/devshell' ] && [ -f '/google/devshell/bashrc.google' ]; then
             export GOOGLE_CLOUD_SHELL=true
           fi
        elif [ "$(lsb_release -is)" == "Ubuntu" ]; then
           export DOTFILES_OS_NAME=ubuntu
        fi
    elif $OSTYPE | grep -qE '^linux-gnu.*' && [ "$(lsb_release -is)" == "Ubuntu" ]; then
        export DOTFILES_OS_NAME=ubuntu
    else
        error "Script unsupported for this specific distro. If this was an downstream fork of another repo, you could override"
        error "the DOTFILES_OS_NAME variable"