Navigate through your search history (/) or command history (:) without leaving your home row?
q:
q/
Think "query search" and "query command"
history command is the same than fc -l
fc is used to manage history
MAIS omyzsh declare un alias history :
https://github.com/ohmyzsh/ohmyzsh/blob/master/lib/history.zsh
ce qui equivaut à history = fc -l 1
Sympa la fonction dans les commentaires, mais pour un gros historique, penser à rajouter un "-l 3" au svn log pour avoir seulement l'historique des 3 derniers changements.
La version modifée avec le "-l 3" :
#
function history_of_file() {
url=$1 # current url of file
svn log -l 3 -q $url | grep -E -e "^r[[:digit:]]+" -o | cut -c2- | sort -n | {
echo
read r
svn log -r$r $url@HEAD
svn cat -r$r $url@HEAD
echo
while read r
do
echo
svn log -r$r $url@HEAD
svn diff -c$r $url@HEAD
echo
done
}
}
history_of_file $1