This commit is contained in:
TheK4n 2021-10-03 21:06:00 +03:00
parent 478e8b720d
commit 8e2b93dc31
2 changed files with 5 additions and 5 deletions

View File

@ -88,5 +88,4 @@ alias music='mplayer -shuffle ~/Music/*'
alias ve='python3 -m virtualenv venv'
alias vd='deactivate'
alias myshs='ps aux | grep -E "$(basename $SHELL)$" | grep -E "$USER"'
alias mysh='ps aux | grep "$(basename "$SHELL")$" | grep "pendos" | grep -o -E "pts/[0-9]+"'

View File

@ -87,9 +87,10 @@ extract () {
*.zip) unzip "$1" ;;
*.Z) uncompress "$1" ;;
*.7z) 7z x "$1" ;;
*) echo "'$1' cannot be extracted via $0" ;;
*) echo "'$1' cannot be extracted via $0" >&2; return 1;;
esac
else
echo "'$1' is not a valid file"
echo "'$1' is not a valid file" >&2
return 1
fi
}
}