config: Improve compatibility with non-visual environments

This commit is contained in:
xerus2000 2020-10-14 14:18:12 +02:00
parent de33c9baf6
commit 9f46e8c2f9
4 changed files with 6 additions and 6 deletions

View File

@ -65,7 +65,7 @@ aptrepoinstall() {
# Usage: ghrelease USER REPO [PATTERN] # Usage: ghrelease USER REPO [PATTERN]
ghrelease() { ghrelease() {
result=$(curl -s "https://api.github.com/repos/$1/$2/releases/latest" | grep -o "http.*${3:-deb}" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2-) result=$(curl -s "https://api.github.com/repos/$1/$2/releases/latest" | grep -o "http.*${3:-deb}" | awk '{ print length(), $0}' | sort -n | cut -d' ' -f2-)
echo "$result" | grep amd64 || echo "$result" echo "$result" | command grep amd64 || echo "$result"
} }
# Installs a local or remote(http/https) deb package and removes it after installation # Installs a local or remote(http/https) deb package and removes it after installation

View File

@ -387,7 +387,7 @@ genssh() {
test -f ~/.ssh/id_rsa.pub || ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -q -N "" -C ${1:-$(hostname)} test -f ~/.ssh/id_rsa.pub || ssh-keygen -t rsa -b 4096 -f ~/.ssh/id_rsa -q -N "" -C ${1:-$(hostname)}
if test "$OSTYPE" = "cygwin" if test "$OSTYPE" = "cygwin"
then cat ~/.ssh/id_rsa.pub>/dev/clipboard then cat ~/.ssh/id_rsa.pub>/dev/clipboard
else xclip -sel clip < ~/.ssh/id_rsa.pub else xclip -sel clip < ~/.ssh/id_rsa.pub | cat ~/.ssh/id_rsa.pub
fi && echo "SSH Public key copied to clipboard" fi && echo "SSH Public key copied to clipboard"
} }

View File

@ -1,2 +1,5 @@
export XDG_DATA_DIRS="$HOME/.local/xdg:$XDG_DATA_DIRS" export XDG_DATA_DIRS="$HOME/.local/xdg:$XDG_DATA_DIRS"
export KDEHOME="$XDG_DATA_HOME/kdehome" export KDEHOME="$XDG_DATA_HOME/kdehome"
# Update keyboard layout to US if keyboardio is connected
$HOME/.local/bin/update-keyboard-layout

View File

@ -34,6 +34,3 @@ export FZF_CTRL_T_COMMAND="$FZF_DEFAULT_COMMAND"
export CTEST_PROGRESS_OUTPUT=1 export CTEST_PROGRESS_OUTPUT=1
export CTEST_OUTPUT_ON_FAILURE=1 export CTEST_OUTPUT_ON_FAILURE=1
export CTEST_PARALLEL_LEVEL=3 export CTEST_PARALLEL_LEVEL=3
# Update keyboard layout to US if keyboardio is connected
$HOME/.local/bin/update-keyboard-layout