Skip to content

Latest commit

 

History

History
36 lines (28 loc) · 1.18 KB

README.md

File metadata and controls

36 lines (28 loc) · 1.18 KB

Migrate fish_history to zsh_history

Usage

With curl

python3 -c "$(curl -fsSL https://raw.github.com/marverix/fish-history-to-zsh-history/master/fish-history-to-zsh-history.py)"

With wget

python3 -c "$(wget https://raw.github.com/marverix/fish-history-to-zsh-history/master/fish-history-to-zsh-history.py -qO -)"

Options

❯ ./fish-history-to-zsh-history.py --help
usage: fish_history to zsh_history [-h] [-f FISH_SRC] [-z ZSH_DST] [-s {abort,overwrite,merge}]

optional arguments:
  -h, --help            show this help message and exit
  -f FISH_SRC, --fish-src FISH_SRC
                        fish_history location
                        | Default: ~/.local/share/fish/fish_history
  -z ZSH_DST, --zsh-dst ZSH_DST
                        zsh_history location
                        | Default: ~/.zsh_history
  -s {abort,overwrite,merge}, --strategy {abort,overwrite,merge}
                        Migrate strategy. What to do when zsh_dst is existing and is not empty?
                        | abort - Abort migration (Default)
                        | overwrite - Overwrite file
                        | merge - Merge existing and the new content