0.0
No commit activity in last 3 years
No release in over 3 years
gem for opening last project
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.17
~> 10.0
~> 3.0
 Project Readme

CircleCI Maintainability Gem Version

LazyNavigator

Gem that generates bash script which opens your IDE and terminal in last project folder(which you point out in constant), and if you want executes some additional bash commands, after that script closes old terminal

Installation

~$ cd ~

$ gem install lazy_navigator

create scripts files by runnig this commands in your terminal:

~$ irb

> require 'lazy_navigator'

> LazyNavigator::Generator.g

> exit

then edit constants in generated lazy_navigator/last_project.rb file

PATH_TO_LAST_PROJECT = 'your last project path'

IDE = your ide name in bash, for example Visual Studio Code = 'code'

Usage

in your home folder run

~$ ./l

also you can pass argument 'command:' in lead method which executes bash command in opening terminal

for example: LazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: IDE, command: 'echo hello world')

if you want you can add this script to autoload when OS starts up

https://askubuntu.com/questions/228304/how-do-i-run-a-script-at-start-up

License

The gem is available as open source under the terms of the MIT License.