Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/holman/dotfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
holman committed May 6, 2017
2 parents 45257e1 + f75397b commit ea6bcb4
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/bootstrap
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ install_dotfiles
if [ "$(uname -s)" == "Darwin" ]
then
info "installing dependencies"
if source bin/dot > /tmp/dotfiles-dot 2>&1
if source bin/dot | while read -r data; do info "$data"; done
then
success "dependencies installed"
else
Expand Down
5 changes: 4 additions & 1 deletion zsh/prompt.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,10 @@ directory_name() {
}

battery_status() {
$ZSH/bin/battery-status
if [[ $(sysctl -n hw.model) == *"Book"* ]]
then
$ZSH/bin/battery-status
fi
}

export PROMPT=$'\n$(battery_status)in $(directory_name) $(git_dirty)$(need_push)\n'
Expand Down
9 changes: 9 additions & 0 deletions zsh/zshrc.symlink
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,12 @@ do
done

unset config_files

# Better history
# Credits to https://coderwall.com/p/jpj_6q/zsh-better-history-searching-with-arrow-keys
autoload -U up-line-or-beginning-search
autoload -U down-line-or-beginning-search
zle -N up-line-or-beginning-search
zle -N down-line-or-beginning-search
bindkey "^[[A" up-line-or-beginning-search # Up
bindkey "^[[B" down-line-or-beginning-search # Down

0 comments on commit ea6bcb4

Please sign in to comment.