add omz install script

This commit is contained in:
A.C.Sukazyo Eyre 2024-05-12 19:25:59 +08:00
parent 87a038f7df
commit 98107cca8b
Signed by: Eyre_S
GPG Key ID: C17CE40291207874
2 changed files with 11 additions and 2 deletions

View File

@ -323,9 +323,9 @@ class SysType (Enum):
LINUX = 'linux' LINUX = 'linux'
TERMUX = 'termux' TERMUX = 'termux'
WINDOWS = 'windows' WINDOWS = 'windows'
if ("termux" in backup_root): if ("termux" in user_home):
sys_type: SysType = SysType.TERMUX sys_type: SysType = SysType.TERMUX
elif (backup_root[0] == "/"): elif (user_home[0] == "/"):
sys_type: SysType = SysType.LINUX sys_type: SysType = SysType.LINUX
else: else:
sys_type: SysType = SysType.WINDOWS sys_type: SysType = SysType.WINDOWS

9
zsh/_init.sh Normal file
View File

@ -0,0 +1,9 @@
sh -c "$(wget https://raw.githubusercontent.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k
git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-completions
git clone https://github.com/jirutka/zsh-shift-select.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-shift-select
git clone https://github.com/zsh-users/zsh-history-substring-search ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-history-substring-search