From 8ca988ab330b33f4a1598692b6ac0cf59931aec2 Mon Sep 17 00:00:00 2001 From: Thomas Ba Date: Thu, 11 Feb 2021 08:06:33 +0100 Subject: [PATCH 1/2] Added -g to mtr alias --- zsh/commands | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zsh/commands b/zsh/commands index bb6597b..d8c39b7 100644 --- a/zsh/commands +++ b/zsh/commands @@ -13,7 +13,7 @@ alias ll=' ls -al --group-directories-first' alias c="clear" alias g='gcc -Wall -pedantic' alias ga='gcc -Wall -pedantic -ansi' -alias mtr='mtr -o "LSD NABWV M"' +alias mtr='mtr -b -o "LSD NABWV M"' alias logo='exit' alias logout='exit' alias exif-remove-regions='exiftool -keywords= -subject= -RegionName= -HierarchicalSubject= -RegionAreaH= -RegionAreaW= -RegionAreaX= -RegionAreaY= -RegionType= -RegionRotation= -RegionAppliedToDimensionsH= -RegionAppliedToDimensionsUnit= -RegionAppliedToDimensionsW=' From 99f611b3fc796a521d4e7ebd9bef23cfc337d955 Mon Sep 17 00:00:00 2001 From: Thomas Ba Date: Thu, 11 Feb 2021 09:57:18 +0100 Subject: [PATCH 2/2] Added xz and zst do extract command --- zsh/commands | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/zsh/commands b/zsh/commands index d8c39b7..79c563f 100644 --- a/zsh/commands +++ b/zsh/commands @@ -32,19 +32,21 @@ whothefuckisusingport() { # functions function extract () { - if [ -f $1 ] ; then - case $1 in - *.tar.bz2) tar xvjf $1 ;; - *.tar.gz) tar xvzf $1 ;; - *.bz2) bunzip2 $1 ;; - *.rar) unrar x $1 ;; - *.gz) gunzip $1 ;; - *.tar) tar xvf $1 ;; - *.tbz2) tar xvjf $1 ;; - *.tgz) tar xvzf $1 ;; - *.zip) unzip $1 ;; - *.Z) uncompress $1 ;; - *.7z) 7z x $1 ;; + if [ -f "$1" ] ; then + case "$1" in + *.tar.bz2) tar xvjf "$1" ;; + *.tar.gz) tar xvzf "$1" ;; + *.bz2) bunzip2 "$1" ;; + *.rar) unrar x "$1" ;; + *.gz) gunzip "$1" ;; + *.tar) tar xvf "$1" ;; + *.tbz2) tar xvjf "$1" ;; + *.tgz) tar xvzf "$1" ;; + *.zip) unzip "$1" ;; + *.Z) uncompress "$1" ;; + *.7z) 7z x "$1" ;; + *.xz) unxz "$1" ;; + *.zst) zstd -d "$1" ;; *) echo "don't know how to extract '$1'..." ;; esac else