diff --git a/scripts/zhome.sh b/scripts/zhome.sh index 4a076e4c..319011f1 100755 --- a/scripts/zhome.sh +++ b/scripts/zhome.sh @@ -1,6 +1,6 @@ #!/bin/bash -echo '' | xclip && xclip -selection clipboard /dev/null && clear && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history +echo '' | xclip && xclip -selection clipboard /dev/null && clear && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history # grabs the last line of our .zshrc, and grabs the first word last_line_first_word=$(awk '{w=$1} END{print w}' $HOME/.zshrc) diff --git a/zshrc.txt b/zshrc.txt index 4b7f9a99..6529bde5 100644 --- a/zshrc.txt +++ b/zshrc.txt @@ -142,7 +142,7 @@ fi bindkey -v # alias home="xclear && cd /home/brian && clear && history -p && hash -r && /usr/bin/rm $HOME/.zsh_history && touch $HOME/.zsh_history" -alias home="cd $HOME && $HOME/scripts/zhome.sh && unset sdir" +alias home="cd $HOME && history -p && zhome.sh && unset sdir" # Various source files (do not place at end of zshrc/bashrc) source ~/.aliases