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]
|
# 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
|
||||||
|
|
|
@ -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)}
|
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"
|
||||||
}
|
}
|
||||||
|
|
||||||
createproject() {
|
createproject() {
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
|
||||||
|
|
Loading…
Reference in New Issue