config: script corrections

This commit is contained in:
xeruf 2022-08-30 00:06:49 +02:00
parent 2a4c112b20
commit 0d871fd967
3 changed files with 13 additions and 4 deletions

View File

@ -131,7 +131,11 @@ edit-bin() {
if f="$(which "$toedit" 2>/dev/null)" && test -f "$f" if f="$(which "$toedit" 2>/dev/null)" && test -f "$f"
then edit "$f" then edit "$f"
else edit-shell -f "$toedit" else edit-shell -f "$toedit"
test $? != 2 || edit "$HOME/.local/bin/${2:-scripts}/$1" if test $? = 2
then local script="$HOME/.local/bin/${2:-scripts}/$1"
edit "$script" &&
chmod +x "$script"
fi
fi fi
} }
@ -260,8 +264,10 @@ u() {
# Networking # Networking
dns() { dns() {
# TODO implement rdns via -x # TODO implement rdns via -x
drill A @8.8.8.8 -Q "$@" for arg; do
drill AAAA @8.8.8.8 -Q "$@" drill A @8.8.8.8 -Q "${arg##*/}"
drill AAAA @8.8.8.8 -Q "${arg##*/}"
done
} }
alias sshk='kitty +kitten ssh' alias sshk='kitty +kitten ssh'
sshl() { sshl() {

View File

@ -64,7 +64,7 @@ arguments = "--rebase --autostash"
[linux] [linux]
# Arguments to pass yay when updating packages # Arguments to pass yay when updating packages
yay_arguments = "--nodiffmenu --ignore android-studio --ignore clion --ignore intellij-idea-ultimate-edition --ignore intellij-idea-ultimate-edition-jre --ignore webstorm --ignore brave-bin" yay_arguments = "--nodiffmenu --ignore android-studio --ignore clion --ignore intellij-idea-ultimate-edition --ignore intellij-idea-ultimate-edition-jre --ignore webstorm --ignore webstorm-jre --ignore brave-bin"
#trizen_arguments = "--devel" #trizen_arguments = "--devel"
#enable_tlmgr = true #enable_tlmgr = true
#emerge_sync_flags = "-q" #emerge_sync_flags = "-q"

View File

@ -39,6 +39,9 @@ template() {
} }
template "$XDG_CONFIG_HOME/doom/user.template.el" template "$XDG_CONFIG_HOME/doom/user.template.el"
template "$XDG_CONFIG_HOME/MuseScore/MuseScore3.template.ini" template "$XDG_CONFIG_HOME/MuseScore/MuseScore3.template.ini"
# TODO JOSM
# TODO audacity
# TODO puddletag
if command -v nvim >/dev/null 2>&1; then if command -v nvim >/dev/null 2>&1; then
echo "Updating NeoVim Plugins" echo "Updating NeoVim Plugins"