zshrc: run prettier

This commit is contained in:
Aminda Suomalainen 2024-07-14 16:34:10 +03:00
parent 345fe98f79
commit 16cc8855c7
Signed by: Mikaela
SSH Key Fingerprint: SHA256:CXLULpqNBdUKB6E6fLA1b/4SzG0HvKD19PbIePU175Q
1 changed files with 105 additions and 107 deletions

View File

@ -30,8 +30,7 @@ UNAME=$(uname)
# enable terminal bell # enable terminal bell
if [[ -f /usr/bin/xset ]]; if [[ -f /usr/bin/xset ]]; then
then
(xset b on &) (xset b on &)
fi fi
@ -575,8 +574,7 @@ alias mpvm="mpv --no-video"
alias mpvms="mpv --no-video --shuffle" alias mpvms="mpv --no-video --shuffle"
# Compatibility with my i3 alsactl mess # Compatibility with my i3 alsactl mess
if [ -f ~/.config/asound.state ] if [ -f ~/.config/asound.state ]; then
then
alias alsactl="\alsactl -f ~/.config/asound.state" alias alsactl="\alsactl -f ~/.config/asound.state"
fi fi
@ -645,9 +643,7 @@ function geoip() {
## for unit193 ;) ## for unit193 ;)
## use command "ex" to extract any archive files. ## use command "ex" to extract any archive files.
## "ex package.zip" for example ## "ex package.zip" for example
function ex () function ex() {
{
if [ -f "$1" ]; then if [ -f "$1" ]; then
case "$1" in case "$1" in
*.tar) tar xvf $1 ;; *.tar) tar xvf $1 ;;
@ -664,9 +660,11 @@ case "$1" in
DIR=${1%%_*.deb} DIR=${1%%_*.deb}
ar xv $1 ar xv $1
mkdir ${DIR} mkdir ${DIR}
tar -C ${DIR} -xzvf data.tar.gz ;; tar -C ${DIR} -xzvf data.tar.gz
;;
*.rpm) rpm2cpio $1 | cpio -vid ;; *.rpm) rpm2cpio $1 | cpio -vid ;;
*) echo ""${1}" cannot be extracted via extract()" *)
echo ""${1}" cannot be extracted via extract()"
;; ;;
esac esac
else else