config: script corrections
This commit is contained in:
parent
2a4c112b20
commit
0d871fd967
|
@ -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() {
|
||||||
|
|
|
@ -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"
|
||||||
|
|
|
@ -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"
|
||||||
|
|
Loading…
Reference in New Issue