.bash_historyとか.zsh_historyに相当するファイルはfish shellだとどうなっているか。公式に書いてあった。
The command history is stored in the file ~/.local/share/fish/fish_history (or $XDG_DATA_HOME/fish/fish_history if that variable is set) by default. However, you can set the fish_history environment variable to change the name of the history session (resulting in a
_history file); both before starting the shell and while the shell is running.
中身はこういう感じ。なので、たとえば ~/.local/share/fish/fish_history
みたいなbashやzshだったら超ヤバいことをしても過去コマンドが実行されないのでその点は問題ない(実行しても長時間エラーを大量に吐きまくるからめんどくさいけど)
- cmd: xxxxx when: 1566468391 - cmd: brew upgrade when: 1566469902