- added shebang line, so nano etc. get the syntax highlighting right
- added function to automatically update flatpaks
This commit is contained in:
parent
0aeb3b770f
commit
4cab17e726
@ -1,3 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
if [ "$TERM" == 'xterm-kitty' ]; then
|
||||
alias ssh='kitty +kitten ssh'
|
||||
alias diff='kitty +kitten diff'
|
||||
@ -29,6 +31,21 @@ alias fssizes='df -kh --output=size,used,avail,pcent,target | sort -hr'
|
||||
alias dirsizes='du -kh --apparent-size --max-depth=1 | sort -hr'
|
||||
|
||||
|
||||
updateFlatpak() {
|
||||
noconfirm=
|
||||
if [[ $1 == "-y" ]]; then
|
||||
noconfirm="--assumeyes";
|
||||
fi
|
||||
executeAndNotify "doUpdateFlatpak $noconfirm" "flatpaks updated" "flatpak update failed";
|
||||
}
|
||||
|
||||
|
||||
doUpdateFlatpak() {
|
||||
flatpak update $1;
|
||||
flatpak remove --unused $1
|
||||
}
|
||||
|
||||
|
||||
# executes command and notifies upon failure
|
||||
execute() {
|
||||
dir="$(pwd)";
|
||||
|
@ -0,0 +1 @@
|
||||
#!/usr/bin/env bash
|
Loading…
Reference in New Issue
Block a user