sliit-foss / gists

MIT License
3 stars 2 forks source link

Script to quickly close a running task on a port #17

Closed GIHAA closed 1 month ago

GIHAA commented 1 month ago

@QuintusJoyal is there a way to move this script to a env variable. The ideal use case looks like this. let say you accidentally closed a terminal or you can't find it. use just type [some alias] kill 3001 or something like that.. is that possible.

QuintusJoyal commented 1 month ago

@QuintusJoyal is there a way to move this script to a env variable. The ideal use case looks like this. let say you accidentally closed a terminal or you can't find it. use just type [some alias] kill 3001 or something like that.. is that possible.

So we can,

put it in a bin folder system or local, renaming and trimming the .sh from it

Or set an alias to it

I'll add both options

GIHAA commented 1 month ago

Great, can you kindly mention that in the gist? Thanks.