Skip to content

Fish

History🔖

Get commands from current session in all terminals

history merge

Search for a specific period of time. The t flag is short for --show-time which by default uses the strftime format # %c%n.

Example for all commands executed in mei:

history -t | grep -i -A1 mei

Example for all commands executed between 13 and 27 jan 2021, shown in reversed order:

history -t -R | grep -i -A1 -E "[1-2][3-7] jan 2021"

Fish configuration file

~/.config/fish/config.fish

To show a greeting upon startup for instance, add

set -g -x fish_greeting 'kau i ka nalu'