Skip to content

Nino-K/shell_history

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

shell_history

How it works

login:

  • get the latest from git
  • update the .bash_history

logout:

  • store the .bash_history in ~/shell_history_src/history.txt
  • push the changes to git repo

Note: we might need some kind of db persistence just incase if user machine reboots???

How To Run

To create the File/Folder structure required by the service run the following rake task and point it to the git repo. This repo is being used to keep track of the changes in .bash_history.

$ bundler install

$ rake fs:create[https://github.com/nino2armando/shell_history_src.git]

The rake task above creates upstart task in /etc/init/ called shellhistory.conf

Note: the original task is located in /upstart/ folder

todo

I need to remove all the hard coded paths in script files...maybe create enviroment variables isntead

back up user changes and tons of testing...

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Ruby 88.9%
  • Shell 11.1%