From d1e111ee1c61aef8401c55120dd49e0c93180bed Mon Sep 17 00:00:00 2001 From: Bartek Stalewski Date: Thu, 16 Jun 2016 16:51:48 +0200 Subject: [PATCH] Migrate to fish --- install.sh | 24 ++++++++---------------- legacy/zsh.sh | 20 ++++++++++++++++++++ 2 files changed, 28 insertions(+), 16 deletions(-) create mode 100644 legacy/zsh.sh diff --git a/install.sh b/install.sh index c700dd0..50634eb 100644 --- a/install.sh +++ b/install.sh @@ -1,7 +1,7 @@ #!/bin/sh # cleaning -rm -rf ~/.dotfiles ~/.zsh ~/.oh-my-zsh ~/.zshrc ~/.vim ~/.vimrc ~/.config/nvim ~/.config/vim-plugins ~/.gitignore ~/.tmux.conf +rm -rf ~/.dotfiles ~/.config/fish ~/.local/share/omf ~/.vim ~/.vimrc ~/.config/nvim ~/.config/vim-plugins ~/.gitignore ~/.tmux.conf # repos if [ `whoami` = "f" ]; then @@ -11,21 +11,13 @@ else fi git clone $path ~/.dotfiles -# zsh -mkdir ~/.zsh -git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh -git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/autosuggestions -cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc -sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc -sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc -if [ ! `whoami` = "root" ]; then - echo 'export DEFAULT_USER=$LOGNAME' >> ~/.zshrc -fi -echo "zstyle ':vcs_info:*' enable git svn" >> ~/.zshrc -echo "[ -e ~/.zsh/autosuggestions/zsh-autosuggestions.zsh ] && source ~/.zsh/autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc -echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc -touch ~/.zshrc.local -source ~/.zshrc +# fish +touch ~/.fish.local +curl -L https://github.com/oh-my-fish/oh-my-fish/raw/master/bin/install | fish +omf install agnoster +omf theme agnoster +echo 'set fish_greeting ""' >> ~/.config/fish/config.fish +echo 'source ~/.fish.local' >> ~/.config/fish/config.fish # vim mkdir -p ~/.config diff --git a/legacy/zsh.sh b/legacy/zsh.sh new file mode 100644 index 0000000..c3a9ca3 --- /dev/null +++ b/legacy/zsh.sh @@ -0,0 +1,20 @@ +#!/bin/sh + +# cleaning +rm -rf ~/.zsh ~/.oh-my-zsh ~/.zshrc + +# zsh +mkdir ~/.zsh +git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh +git clone https://github.com/zsh-users/zsh-autosuggestions.git ~/.zsh/autosuggestions +cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc +sed -i -e 's/ZSH_THEME="robbyrussell"/ZSH_THEME="agnoster"/' ~/.zshrc +sed -i -e 's/# CASE_SENSITIVE/CASE_SENSITIVE/' ~/.zshrc +if [ ! `whoami` = "root" ]; then + echo 'export DEFAULT_USER=$LOGNAME' >> ~/.zshrc +fi +echo "zstyle ':vcs_info:*' enable git svn" >> ~/.zshrc +echo "[ -e ~/.zsh/autosuggestions/zsh-autosuggestions.zsh ] && source ~/.zsh/autosuggestions/zsh-autosuggestions.zsh" >> ~/.zshrc +echo "[ -e ~/.zshrc.local ] && source ~/.zshrc.local" >> ~/.zshrc +touch ~/.zshrc.local +source ~/.zshrc