Update alias to use Podman instead of Docker

This might be pain for the Docker VS Code extension, especially if
I'm using OpenVSCodeServer without Docker Engine socket itself.

Signed-off-by: Andrei Jiroh Eugenio Halili <ajhalili2006@gmail.com>
This commit is contained in:
Andrei Jiroh Halili 2021-10-26 12:41:46 +08:00
parent c9cb581b2a
commit 9bf9ca5c02
Signed by: ajhalili2006
GPG Key ID: A30EBE40AD856D88
2 changed files with 6 additions and 1 deletions

View File

@ -88,3 +88,6 @@ alias edit-script="edit-script-file"
# add a bit of test here
alias guild-test="echo successfully imported owo"
# shortcuts for rdp stuff
alias bshq-cursed='rdesktop --user cursed-remote-user -r audio:local -x lan -r clipboard:PRIMARYCLIPBOARD -n guildedguy bullshit.hq'

View File

@ -122,11 +122,12 @@ if [[ -n "$SSH_CLIENT" ]] || [[ -n "$SSH_TTY" ]]; then
export EDITOR=nano
else
# We'll do some checks here btw, Currently I use GNOME and Xfce4 as my desktop environments, but
# I also consider adding KDE here in the future.
# sometimes, I'm on KDE Plasma.
case $(ps -o comm= -p $PPID) in
sshd | */sshd) export EDITOR="nano" ;;
xfce*) export EDITOR="$(which code >>/dev/null && echo code --wait || which gedit >>/dev/null && echo gedit || echo nano)" ;;
gnome*) export EDITOR="$(which code >>/dev/null && echo code --wait || which gedit >>/dev/null && echo gedit || echo nano)" ;;
konsole*) export EDITOR="$(which code >>/dev/null && echo code --wait || which gedit >>/dev/null && echo gedit || echo nano)" ;;
node*) [[ "$TERM_PROGRAM" == "vscode" ]] && export EDITOR="code --wait" || export EDITOR="$(echo nano)";;
*) export EDITOR="nano" ;;
esac
@ -143,6 +144,7 @@ else
sshd | */sshd) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit);;
xfce*) eval $(keychain --agents gpg,ssh --eval);;
gnome*) eval $(keychain --agents gpg,ssh --eval);;
konsole*) eval $(keychain --agents gpg,ssh --eval);;
# Don't forget VS Code and code-server!
code* | node*) eval $(keychain --agents gpg,ssh --eval);;
*) eval $(keychain --agents gpg,ssh --eval --nogui --noinherit) ;;