mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-30 02:44:42 +01:00
Bringing back original history plugin stuff (i liked the old history
mass-dump)
This commit is contained in:
parent
91edf3e5dd
commit
4262b6238e
3 changed files with 4 additions and 5 deletions
|
|
@ -13,8 +13,7 @@ alias please='sudo'
|
|||
#alias g='grep -in'
|
||||
|
||||
# Show history
|
||||
# alias history='fc -l 1'
|
||||
alias his='fc -l 1'
|
||||
alias history='fc -l 1'
|
||||
|
||||
# List direcory contents
|
||||
alias lsa='ls -lah'
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
alias h='his'
|
||||
alias h='history'
|
||||
|
||||
function hs
|
||||
{
|
||||
h | grep $*
|
||||
history | grep $*
|
||||
}
|
||||
|
||||
alias hsi='hs -i'
|
||||
|
|
|
|||
2
zshrc
2
zshrc
|
|
@ -71,7 +71,7 @@ function zshaddhistory() {
|
|||
echo "$PWD; $COMMAND_STR; $TTY@$(date +%s.%N)" >> ~/.zsh_enhanced_history
|
||||
|
||||
# rest is "default" zshaddhistory()
|
||||
print -sr "${COMMAND_STR}"
|
||||
print -Sr ${COMMAND_STR}
|
||||
fc -p
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue