From 048f239a8c78f7e07e9d1ad0d6b5991c49980213 Mon Sep 17 00:00:00 2001 From: Alvis Zhao Date: Wed, 25 Mar 2020 13:38:22 +0000 Subject: [PATCH] =?UTF-8?q?improvement:=20=E7=A7=BB=E9=99=A4oh-my-zsh?= =?UTF-8?q?=E7=9A=84=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- install.sh | 7 +++---- uninstall.sh | 7 +++++-- zsh/templates/zshrc.zsh-template | 4 ++-- 3 files changed, 10 insertions(+), 8 deletions(-) diff --git a/install.sh b/install.sh index e60feb9..a5a5d77 100644 --- a/install.sh +++ b/install.sh @@ -1,12 +1,11 @@ #!/bin/bash -# zsh -ln -s -f ~/.oh-my-terminal/zsh ~/.oh-my-zsh -ln -s -f ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc - # tmux ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf ~/.tmux.conf ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local # vim ln -s -f ~/.oh-my-terminal/vim/basic.vim ~/.vimrc + +# zsh +ln -s -f ~/.oh-my-terminal/zsh/templates/zshrc.zsh-template ~/.zshrc diff --git a/uninstall.sh b/uninstall.sh index 920edb9..fca703c 100644 --- a/uninstall.sh +++ b/uninstall.sh @@ -1,8 +1,11 @@ #!/bin/bash +# tmux rm -f ~/.tmux.conf rm -f ~/.tmux.conf.local -rm -f ~/.oh-my-zsh -rm -f ~/.vim_runtime + +# vim rm -f ~/.vimrc + +# zsh rm -f ~/.zshrc diff --git a/zsh/templates/zshrc.zsh-template b/zsh/templates/zshrc.zsh-template index abd2c88..7ff2414 100644 --- a/zsh/templates/zshrc.zsh-template +++ b/zsh/templates/zshrc.zsh-template @@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # Path to your oh-my-zsh installation. -export ZSH=$HOME/.oh-my-zsh +export ZSH=$HOME/.oh-my-terminal/zsh # Set name of the theme to load --- if set to "random", it will # load a random theme each time oh-my-zsh is loaded, in which case, @@ -93,4 +93,4 @@ source $ZSH/oh-my-zsh.sh # # Example aliases # alias zshconfig="mate ~/.zshrc" -# alias ohmyzsh="mate ~/.oh-my-zsh" +# alias ohmyzsh="mate ~/.oh-my-terminal/zsh"