dotfiles/alias.sh
xenon.inx a907d42d89
Inital Repository & Add alias
Inital this repo in unlicense.

Create README and add some content.

Add 2 alias.
2025-02-26 19:46:02 +08:00

24 lines
1.2 KiB
Bash

#!/bin/sh
# Some personally preferred alias
# 1. pwdssh
# pwdssh is a quick way to use ssh with no public key authentications would be
# tried. I use this alias to connect to machines I didn't configure the public
# key login. Due to the sshd only allows 5 tries of login, my 1Password vault
# just can't try them all until the exact one was chosen ( I haven't configure
# the SSH Bookmarks, which would resolve this problem). So I choose this alias
# as my prefixed ssh to login with only password.
alias pwdssh='ssh -o PreferredAuthentications=password -o PubkeyAuthentication=no '
# 2. dolphon
# I use archlinux on my computer. And just as the tutorial did, I use KDE Pla-
# sma as my desktop environment. But use dophin(GUI file explorer) as root is
# kinda difficult. Only use "sudo dolphin" will prompt you that you should use
# "dolphin --sudo" directly, but when you run the last one you need to install
# kio-admin. So after seeking some of websites, I found this way to run dol-
# phin with root permission(and without install kio-admin).
alias dolphon='pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY KDE_SESSION_VERSION=5 KDE_FULL_SESSION=true dolphin'