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"
then edit "$f"
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
}
@ -260,8 +264,10 @@ u() {
# Networking
dns() {
# TODO implement rdns via -x
drill A @8.8.8.8 -Q "$@"
drill AAAA @8.8.8.8 -Q "$@"
for arg; do
drill A @8.8.8.8 -Q "${arg##*/}"
drill AAAA @8.8.8.8 -Q "${arg##*/}"
done
}
alias sshk='kitty +kitten ssh'
sshl() {

View File

@ -64,7 +64,7 @@ arguments = "--rebase --autostash"
[linux]
# 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"
#enable_tlmgr = true
#emerge_sync_flags = "-q"

View File

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