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]
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-)
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

View File

@ -387,8 +387,8 @@ genssh() {
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"
then cat ~/.ssh/id_rsa.pub>/dev/clipboard
else xclip -sel clip < ~/.ssh/id_rsa.pub
fi && echo "SSH Public key copied to clipboard"
else xclip -sel clip < ~/.ssh/id_rsa.pub | cat ~/.ssh/id_rsa.pub
fi && echo "SSH Public key copied to clipboard"
}
createproject() {

View File

@ -1,2 +1,5 @@
export XDG_DATA_DIRS="$HOME/.local/xdg:$XDG_DATA_DIRS"
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_OUTPUT_ON_FAILURE=1
export CTEST_PARALLEL_LEVEL=3
# Update keyboard layout to US if keyboardio is connected
$HOME/.local/bin/update-keyboard-layout