From a907d42d89b2179dc173d0bd7c1d41788bab8daf Mon Sep 17 00:00:00 2001 From: "xenon.inx" Date: Wed, 26 Feb 2025 19:46:02 +0800 Subject: [PATCH] Inital Repository & Add alias Inital this repo in unlicense. Create README and add some content. Add 2 alias. --- LICENSE | 24 ++++++++++++++++++++++++ README | 20 ++++++++++++++++++++ alias.sh | 24 ++++++++++++++++++++++++ enable | 5 +++++ 4 files changed, 73 insertions(+) create mode 100644 LICENSE create mode 100644 README create mode 100644 alias.sh create mode 100644 enable diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..efb9808 --- /dev/null +++ b/LICENSE @@ -0,0 +1,24 @@ +This is free and unencumbered software released into the public domain. + +Anyone is free to copy, modify, publish, use, compile, sell, or +distribute this software, either in source code form or as a compiled +binary, for any purpose, commercial or non-commercial, and by any +means. + +In jurisdictions that recognize copyright laws, the author or authors +of this software dedicate any and all copyright interest in the +software to the public domain. We make this dedication for the benefit +of the public at large and to the detriment of our heirs and +successors. We intend this dedication to be an overt act of +relinquishment in perpetuity of all present and future rights to this +software under copyright law. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR +OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, +ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR +OTHER DEALINGS IN THE SOFTWARE. + +For more information, please refer to diff --git a/README b/README new file mode 100644 index 0000000..e5e126f --- /dev/null +++ b/README @@ -0,0 +1,20 @@ +========== +DOTFILES +========== + +Some of my dotfiles... + +You can refer to and/or use my dotfiles freely. + +========== +Usage +========== + +> git clone https://git.inx.wf/inx/dotfiles.git:.dotfiles + +Then, edit your .bashrc and append this line. + +> source .dotfiles/enable + +And enjoy. Better refer to each .sh file to check what thing I did. + diff --git a/alias.sh b/alias.sh new file mode 100644 index 0000000..63e93c0 --- /dev/null +++ b/alias.sh @@ -0,0 +1,24 @@ +#!/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' + diff --git a/enable b/enable new file mode 100644 index 0000000..59a7674 --- /dev/null +++ b/enable @@ -0,0 +1,5 @@ +#/bin/sh + +source alias.sh + +