All Projects → rsalmei → Zsh History To Fish

rsalmei / Zsh History To Fish

Licence: mit
Bring your ZSH history to Fish shell.

Programming Languages

python
139335 projects - #7 most used programming language
shell
77523 projects
script
160 projects

Projects that are alternatives of or similar to Zsh History To Fish

Resh
Rich Enhanced Shell History - Contextual shell history for zsh and bash
Stars: ✭ 310 (+1247.83%)
Mutual labels:  zsh, history
Termux Style
Simple script to change color-schemes and fonts for Termux.
Stars: ✭ 400 (+1639.13%)
Mutual labels:  zsh, fish
History Search Multi Word
Multi-word, syntax highlighted history searching for Zsh
Stars: ✭ 314 (+1265.22%)
Mutual labels:  zsh, history
basalt
The rock-solid Bash package manager
Stars: ✭ 16 (-30.43%)
Mutual labels:  zsh, fish
Powerline Shell
A beautiful and useful prompt for your shell
Stars: ✭ 5,743 (+24869.57%)
Mutual labels:  zsh, fish
Cod
cod is a completion daemon for bash/fish/zsh
Stars: ✭ 288 (+1152.17%)
Mutual labels:  zsh, fish
Dtags
Directory Tags for Lazy Programmers
Stars: ✭ 351 (+1426.09%)
Mutual labels:  zsh, fish
hstdb
Better history management for zsh. Based on ideas from https://github.com/larkery/zsh-histdb.
Stars: ✭ 25 (+8.7%)
Mutual labels:  zsh, history
Autocomplete
Autocomplete for terminals on MacOS
Stars: ✭ 569 (+2373.91%)
Mutual labels:  zsh, fish
Bash Shortcuts Cheat Sheet
Useful shortcuts for bash/zsh
Stars: ✭ 452 (+1865.22%)
Mutual labels:  zsh, fish
tii
Command not found? Install it right there!
Stars: ✭ 27 (+17.39%)
Mutual labels:  zsh, fish
Zsh Histdb
A slightly better history for zsh
Stars: ✭ 801 (+3382.61%)
Mutual labels:  zsh, history
atuin
🐢 Magical shell history
Stars: ✭ 1,295 (+5530.43%)
Mutual labels:  zsh, history
G
Simple go version manager, gluten-free
Stars: ✭ 307 (+1234.78%)
Mutual labels:  zsh, fish
hoard
cli command organizer written in rust
Stars: ✭ 71 (+208.7%)
Mutual labels:  zsh, fish
Zsh Autosuggestions
Fish-like autosuggestions for zsh
Stars: ✭ 19,697 (+85539.13%)
Mutual labels:  zsh, fish
config
Fig's integrations with bash, zsh, fish, ssh, and tmux. Also contains Fig's installation and update scripts. Finally, this repo is the root of the .fig folder that is installed on your computer when you download Fig!
Stars: ✭ 44 (+91.3%)
Mutual labels:  zsh, fish
carapace-bin
multi-shell multi-command argument completer
Stars: ✭ 42 (+82.61%)
Mutual labels:  zsh, fish
Awesome Shell
A curated list of awesome command-line frameworks, toolkits, guides and gizmos. Inspired by awesome-php.
Stars: ✭ 22,631 (+98295.65%)
Mutual labels:  zsh, fish
Awesome Dotfiles
A curated list of dotfiles resources.
Stars: ✭ 6,295 (+27269.57%)
Mutual labels:  zsh, fish

PyPI version PyPI pyversions PyPI status

Bring your ZSH history to Fish shell

This is a simple tool to ease the migration from ZSH to Fish shell, without losing your hard-earned history commands.

As I was migrating myself, I've found out there's no tool to do this automatically, so I've made one for my own use. For that, I had to search for the specifications of both history files, and ended up involved in multiple threads with the right devs to try to understand and make it work. In the process, I've stumbled upon several people interested in a such a tool.

Well, it has worked! So I've wrapped it in a python package to make it easy to use, and now I'm sharing with anyone who may need it! It's released on PyPI.

Get it

Just do in your zsh shell:

❯ pip install zsh-history-to-fish

How to use

❯ zsh-history-to-fish --help
Usage: zsh-history-to-fish [OPTIONS] [INPUT_FILE]

  Bring your ZSH history to Fish shell.

Options:
  --version               Show the version and exit.
  -o, --output_file PATH  Optional output, will append to fish history by default
  -d, --dry-run           Do not write anything to filesystem
  -n, --no-convert        Do not naively convert commands
  --help                  Show this message and exit.

A successful run looks like:

❯ zsh-history-to-fish -dn
ZSH history to Fish
===================
input : /Users/rogerio/.zsh_history (naive-convert=False)
output: dry run mode
.......
Processed 6515 commands.
No file has been written.

Changelog highlights:

  • 0.3.0: fix for empty history lines, and general command output improvements
  • 0.2.0: use actual zsh process to import history, since it does not use utf-8
  • 0.1.0: initial version

License

This software is licensed under the MIT License. See the LICENSE file in the top distribution directory for the full license text.

Did you like it?

Thank you for your interest!

I've put much ❤️ and effort into this.
If you appreciate my work you can sponsor me, buy me a coffee! The button is on the top right of the page (the big orange one, it's hard to miss 😊)

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].