From bf967976e9148f87b26f3b3d789f332d8ef99ac2 Mon Sep 17 00:00:00 2001 From: z3rOR0ne Date: Wed, 20 Jul 2022 13:55:47 -0700 Subject: [PATCH] :recycle: Refactored history -p placement to .zshrc --- scripts/zhome.sh | 2 +- zshrc.txt | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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