config: Improve compatibility with non-visual environments
This commit is contained in:
parent
de33c9baf6
commit
9f46e8c2f9
|
@ -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
|
||||
|
|
|
@ -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)}
|
||||
if test "$OSTYPE" = "cygwin"
|
||||
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"
|
||||
}
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue