Skip to content

Commit

Permalink
Generate tmuxline and prompline snapshots via scripts.
Browse files Browse the repository at this point in the history
  • Loading branch information
razor-x committed Aug 23, 2015
1 parent 54d4da7 commit 03cb792
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 8 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## HEAD

- Generate tmuxline and prompline snapshots via scripts.

## 1.1.0

- Update vimrc in bootstrap script to use vim-plug.
Expand Down
12 changes: 8 additions & 4 deletions bootstrap.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ fi

if ! [[ -e $HOME/.promptline.zsh ]]; then
if [[ -d $HOME/.vim/plugged/promptline.vim ]]; then
puts 'Note' 'To install promptline, open vim and run:'
echo ":PromptlineSnapshot ~/.promptline.zsh"
puts 'Installing' 'promptline'
vim -c "PromptlineSnapshot ~/.promptline.zsh" -c qall!
fi
fi

Expand All @@ -77,8 +77,12 @@ fi

if ! [[ -e $HOME/.tmuxline.conf ]] then
if [[ -d $HOME/.vim/plugged/tmuxline.vim ]]; then
puts 'Note' 'To install tmuxline, while in a tmux session open vim and run:'
echo ":TmuxlineSnapshot ~/.tmuxline.conf"
if [[ -n "$TMUX" ]]; then
puts 'Installing' 'tmuxline'
vim -c "TmuxlineSnapshot ~/.tmuxline.conf" -c qall!
else
puts 'Info' 'Run in a tmux session to install tmuxline.'
fi
fi
fi

Expand Down
12 changes: 8 additions & 4 deletions update.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,17 @@ if [[ -d $HOME/.rbenv/plugins/ruby-build ]]; then
fi

if [[ -e $HOME/.promptline.zsh ]]; then
puts 'Note' 'To update promptline, open vim and run:'
echo ":PromptlineSnapshot! ~/.promptline.zsh"
puts 'Updating' 'promptline'
vim -c "PromptlineSnapshot! ~/.promptline.zsh" -c qall!
fi

if [[ -e $HOME/.tmuxline.conf ]]; then
puts 'Note' 'To update tmuxline, while in a tmux session open vim and run:'
echo ":TmuxlineSnapshot! ~/.tmuxline.conf"
if [[ -n "$TMUX" ]]; then
puts 'Updating' 'tmuxline'
vim -c "TmuxlineSnapshot! ~/.tmuxline.conf" -c qall!
else
puts 'Info' 'Run in a tmux session to install tmuxline.'
fi
fi

exit 0

0 comments on commit 03cb792

Please sign in to comment.