Handle SDF things
This commit is contained in:
parent
d38a177aed
commit
4da10ee1e1
@ -1,4 +1,9 @@
|
|||||||
alias ls="ls --color=auto"
|
# If ls has `--color` support
|
||||||
|
if ls --color > /dev/null 2>&1; then
|
||||||
|
alias ls="ls --color=auto"
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Main aliases
|
||||||
alias ll="ls -l"
|
alias ll="ls -l"
|
||||||
alias la="ls -a"
|
alias la="ls -a"
|
||||||
alias :q="exit"
|
alias :q="exit"
|
||||||
@ -165,3 +170,23 @@ ewconfig-pull() {
|
|||||||
git pull
|
git pull
|
||||||
cd $cwd
|
cd $cwd
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Updates the ewconfig on machines that don't have git
|
||||||
|
ewconfig-pull-zip(){
|
||||||
|
cwd=$(pwd)
|
||||||
|
# If $EWCONFIG_ROOT/.git exists, don't let the user run this
|
||||||
|
if [ -d $EWCONFIG_ROOT/.git ]; then
|
||||||
|
echo "You can't run this command when ~/.config/ewconfig is a git repo!"
|
||||||
|
return 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Download the latest zip
|
||||||
|
cd ~/Downloads
|
||||||
|
curl -L https://ewp.fyi/config.zip -o ewconfig.zip
|
||||||
|
rm -rf ~/.config/ewconfig
|
||||||
|
unzip -o ewconfig.zip -d ~/.config/ewconfig
|
||||||
|
rm ewconfig.zip
|
||||||
|
|
||||||
|
# Return to the original directory
|
||||||
|
cd $cwd
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user