Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/marverix/fish-history-to-zsh-history
Python converter from fish_history to zsh_history
https://github.com/marverix/fish-history-to-zsh-history
fish history migration-tool zsh
Last synced: 2 days ago
JSON representation
Python converter from fish_history to zsh_history
- Host: GitHub
- URL: https://github.com/marverix/fish-history-to-zsh-history
- Owner: marverix
- License: apache-2.0
- Created: 2022-03-16T21:49:31.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2022-07-11T17:37:14.000Z (over 2 years ago)
- Last Synced: 2023-03-02T13:35:55.266Z (over 1 year ago)
- Topics: fish, history, migration-tool, zsh
- Language: Python
- Homepage:
- Size: 6.84 KB
- Stars: 3
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Migrate fish_history to zsh_history
## Usage
### With curl
```sh
python3 -c "$(curl -fsSL https://raw.github.com/marverix/fish-history-to-zsh-history/master/fish-history-to-zsh-history.py)"
```### With wget
```sh
python3 -c "$(wget https://raw.github.com/marverix/fish-history-to-zsh-history/master/fish-history-to-zsh-history.py -qO -)"
```## Options
```sh
❯ ./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
```