♻️ Refactored history -p placement to .zshrc
This commit is contained in:
parent
4ce97bf149
commit
bf967976e9
2 changed files with 2 additions and 2 deletions
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue