Compare commits
No commits in common. "8358af1077af1f96756999b05363147cd5893103" and "0aeb3b770f9ad811e47e90585ee7add8f52c77be" have entirely different histories.
8358af1077
...
0aeb3b770f
@ -1,5 +1,3 @@
|
|||||||
#!/usr/bin/env bash
|
|
||||||
|
|
||||||
if [ "$TERM" == 'xterm-kitty' ]; then
|
if [ "$TERM" == 'xterm-kitty' ]; then
|
||||||
alias ssh='kitty +kitten ssh'
|
alias ssh='kitty +kitten ssh'
|
||||||
alias diff='kitty +kitten diff'
|
alias diff='kitty +kitten diff'
|
||||||
@ -31,21 +29,6 @@ alias fssizes='df -kh --output=size,used,avail,pcent,target | sort -hr'
|
|||||||
alias dirsizes='du -kh --apparent-size --max-depth=1 | 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
|
# executes command and notifies upon failure
|
||||||
execute() {
|
execute() {
|
||||||
dir="$(pwd)";
|
dir="$(pwd)";
|
||||||
|
@ -1 +0,0 @@
|
|||||||
#!/usr/bin/env bash
|
|
@ -2,9 +2,6 @@
|
|||||||
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
|
||||||
# for examples
|
# for examples
|
||||||
|
|
||||||
set -o pipefail
|
|
||||||
# set -u
|
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
if [[ $- != *i* ]]; then
|
if [[ $- != *i* ]]; then
|
||||||
return
|
return
|
||||||
@ -191,7 +188,7 @@ ex ()
|
|||||||
*.tar.bz2) tar xjf $1 ;;
|
*.tar.bz2) tar xjf $1 ;;
|
||||||
*.tar.gz) tar xzf $1 ;;
|
*.tar.gz) tar xzf $1 ;;
|
||||||
*.bz2) bunzip2 $1 ;;
|
*.bz2) bunzip2 $1 ;;
|
||||||
*.rar) unrar x $1 ;;
|
*.rar) unrar x $1 ;;
|
||||||
*.gz) gunzip $1 ;;
|
*.gz) gunzip $1 ;;
|
||||||
*.tar) tar xf $1 ;;
|
*.tar) tar xf $1 ;;
|
||||||
*.tbz2) tar xjf $1 ;;
|
*.tbz2) tar xjf $1 ;;
|
||||||
|
Loading…
Reference in New Issue
Block a user