Browse Source

improvement: 移除oh-my-zsh的链接

master
Alvis Zhao 5 years ago
parent
commit
048f239a8c
  1. 7
      install.sh
  2. 7
      uninstall.sh
  3. 4
      zsh/templates/zshrc.zsh-template

7
install.sh

@ -1,12 +1,11 @@
#!/bin/bash #!/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 # tmux
ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf ~/.tmux.conf ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf ~/.tmux.conf
ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local ln -s -f ~/.oh-my-terminal/tmux/.tmux.conf.local ~/.tmux.conf.local
# vim # vim
ln -s -f ~/.oh-my-terminal/vim/basic.vim ~/.vimrc ln -s -f ~/.oh-my-terminal/vim/basic.vim ~/.vimrc
# zsh
ln -s -f ~/.oh-my-terminal/zsh/templates/zshrc.zsh-template ~/.zshrc

7
uninstall.sh

@ -1,8 +1,11 @@
#!/bin/bash #!/bin/bash
# tmux
rm -f ~/.tmux.conf rm -f ~/.tmux.conf
rm -f ~/.tmux.conf.local rm -f ~/.tmux.conf.local
rm -f ~/.oh-my-zsh
rm -f ~/.vim_runtime # vim
rm -f ~/.vimrc rm -f ~/.vimrc
# zsh
rm -f ~/.zshrc rm -f ~/.zshrc

4
zsh/templates/zshrc.zsh-template

@ -2,7 +2,7 @@
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation. # 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 # 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, # 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 # Example aliases
# alias zshconfig="mate ~/.zshrc" # alias zshconfig="mate ~/.zshrc"
# alias ohmyzsh="mate ~/.oh-my-zsh" # alias ohmyzsh="mate ~/.oh-my-terminal/zsh"

Loading…
Cancel
Save