Skip to content

sync .zsh_history using Dropbox(any other cloud storage service)

Notifications You must be signed in to change notification settings

mrzzcn/sync-zsh-history

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Installation

 npm i sync-zsh-history -g

Usage

create a file under the synced directory of some cloud storage service, let's say ~/dropbox/.zsh_history

synczshistory ~/dropbox/.zsh_history

it will merge ~/dropbox/.zsh_history and ~/.zsh_history, remove duplicated commands, and write the results back to both, then you can merge it in another machine.

Automatic

wget https://raw.githubusercontent.com/mrzzcn/sync-zsh-history/master/com.github.mrzzcn.sync-zsh-history.plist

# Before this, you may want to change trigger time and log file location.
launchctl load -w com.github.mrzzcn.sync-zsh-history.plist

About

sync .zsh_history using Dropbox(any other cloud storage service)

Resources

Stars

Watchers

Forks

Packages

No packages published