mirror of
https://gitea.blesmrt.net/mikaela/shell-things.git
synced 2024-11-10 02:29:22 +01:00
zshrc: run prettier
This commit is contained in:
parent
345fe98f79
commit
16cc8855c7
16
rc/zshrc
16
rc/zshrc
@ -30,8 +30,7 @@ UNAME=$(uname)
|
||||
|
||||
# enable terminal bell
|
||||
|
||||
if [[ -f /usr/bin/xset ]];
|
||||
then
|
||||
if [[ -f /usr/bin/xset ]]; then
|
||||
(xset b on &)
|
||||
fi
|
||||
|
||||
@ -575,8 +574,7 @@ alias mpvm="mpv --no-video"
|
||||
alias mpvms="mpv --no-video --shuffle"
|
||||
|
||||
# Compatibility with my i3 alsactl mess
|
||||
if [ -f ~/.config/asound.state ]
|
||||
then
|
||||
if [ -f ~/.config/asound.state ]; then
|
||||
alias alsactl="\alsactl -f ~/.config/asound.state"
|
||||
fi
|
||||
|
||||
@ -645,9 +643,7 @@ function geoip() {
|
||||
## for unit193 ;)
|
||||
## use command "ex" to extract any archive files.
|
||||
## "ex package.zip" for example
|
||||
function ex ()
|
||||
|
||||
{
|
||||
function ex() {
|
||||
if [ -f "$1" ]; then
|
||||
case "$1" in
|
||||
*.tar) tar xvf $1 ;;
|
||||
@ -664,9 +660,11 @@ case "$1" in
|
||||
DIR=${1%%_*.deb}
|
||||
ar xv $1
|
||||
mkdir ${DIR}
|
||||
tar -C ${DIR} -xzvf data.tar.gz ;;
|
||||
tar -C ${DIR} -xzvf data.tar.gz
|
||||
;;
|
||||
*.rpm) rpm2cpio $1 | cpio -vid ;;
|
||||
*) echo ""${1}" cannot be extracted via extract()"
|
||||
*)
|
||||
echo ""${1}" cannot be extracted via extract()"
|
||||
;;
|
||||
esac
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user