Customize zsh installation
This commit is contained in:
1 parent
f0b089dacc
commit
ff76824283
5 files changed
+288
-285
No files matched your search
@@ -0,0 +1,18 @@
|
||||
#!/bin/bash
|
||||
|
||||
BASE_URL="https://git.miomio.moe/mio/easyzsh/rss/branch/master/zshrc"
|
||||
|
||||
ZSH_CONFIGS_DIR="$HOME/.config/zshrc"
|
||||
mkdir -p $ZSH_CONFIGS_DIR
|
||||
|
||||
if [ "$#" -gt 0 ]; then
|
||||
for arg in "$@"; do
|
||||
if ! wget "${BASE_URL}/${arg}.zsh" -O "${ZSH_CONFIGS_DIR}/${arg}.zsh"; then
|
||||
echo "Failed to download ${arg}.zsh from ${BASE_URL}"
|
||||
exit 1
|
||||
fi
|
||||
done
|
||||
else
|
||||
echo "No arguments provided. Please specify the config files to download."
|
||||
exit 1
|
||||
fi
|
||||
Reference in new issue
Block a user