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.