♻️ Refactored history -p placement to .zshrc

This commit is contained in:
z3rOR0ne 2022-07-20 13:55:47 -07:00
parent 4ce97bf149
commit bf967976e9
2 changed files with 2 additions and 2 deletions

View file

@ -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)

View file

@ -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