chore: more shellcheck
parent
760a31ceb9
commit
9f8b6b38e0
|
@ -2,5 +2,5 @@ fileignoreconfig:
|
|||
- filename: fedora/.bashrc
|
||||
checksum: 50343b6939422a69285d997490f765d983d739a4f1bfc53d3ae060ed9fb2f45c
|
||||
- filename: fedora/.bashrc.d/.bash_aliases
|
||||
checksum: bb0c560b022611bd0cc0dfcd3e0d591dee044835fa713d64e3b677b80ffd08cf
|
||||
checksum: 5278a3160e90c5fc886009a4cd7403b4d064370b0432936c743a237e85b2c7da
|
||||
version: "1.0"
|
||||
|
|
|
@ -29,7 +29,7 @@ alias gpl='git pull' #pull updates from a git repo
|
|||
alias gph='git push' #push local updates to a git repo
|
||||
alias gl='git log' #check git log
|
||||
# commit is a script that makes sure I follow conventional commits
|
||||
if [ -f $HOME/bin/commit ] ; then
|
||||
if [ -f "$HOME"/bin/commit ] ; then
|
||||
alias gcm='commit'
|
||||
fi
|
||||
alias gs='git status' #check git status
|
||||
|
@ -156,20 +156,20 @@ ex ()
|
|||
{
|
||||
if [ -f "$1" ] ; then
|
||||
case $1 in
|
||||
*.tar.bz2) tar xjf $1 ;;
|
||||
*.tar.gz) tar xzf $1 ;;
|
||||
*.bz2) bunzip2 $1 ;;
|
||||
*.rar) unrar x $1 ;;
|
||||
*.gz) gunzip $1 ;;
|
||||
*.tar) tar xf $1 ;;
|
||||
*.tbz2) tar xjf $1 ;;
|
||||
*.tgz) tar xzf $1 ;;
|
||||
*.zip) unzip $1 ;;
|
||||
*.Z) uncompress $1;;
|
||||
*.7z) 7z x $1 ;;
|
||||
*.deb) ar x $1 ;;
|
||||
*.tar.xz) tar xf $1 ;;
|
||||
*.tar.zst) unzstd $1 ;;
|
||||
*.tar.bz2) tar xjf "$1" ;;
|
||||
*.tar.gz) tar xzf "$1" ;;
|
||||
*.bz2) bunzip2 "$1" ;;
|
||||
*.rar) unrar x "$1" ;;
|
||||
*.gz) gunzip "$1" ;;
|
||||
*.tar) tar xf "$1" ;;
|
||||
*.tbz2) tar xjf "$1" ;;
|
||||
*.tgz) tar xzf "$1" ;;
|
||||
*.zip) unzip "$1" ;;
|
||||
*.Z) uncompress "$1";;
|
||||
*.7z) 7z x "$1" ;;
|
||||
*.deb) ar x "$1" ;;
|
||||
*.tar.xz) tar xf "$1" ;;
|
||||
*.tar.zst) unzstd "$1" ;;
|
||||
*) echo "'$1' cannot be extracted via ex()" ;;
|
||||
esac
|
||||
else
|
||||
|
|
Loading…
Reference in New Issue