Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up

job control from anywhere!

NotificationsYou must be signed in to change notification settings

yshui/job-security

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

job-security is a tool that lets you put your running programs into background, then bring them to the foreground anywhere you want.

It also supplements shells that doesn't natively support job control, such as nushell, elvish, etc.

Demo

termtosvg_053kx7nv

Features

  • normal job control stuff: stopping things and putting them into the background, and resuming them later.
  • job mobility: jobs are not tied to a terminal, you can resume stopped jobs wherever you want.
  • starting/resuming jobs in the background.
  • monitoring job statuses.
  • preserving and retrieving logs from background jobs. output from background jobs won't invade your shell, and can be easily retrieved when needed.

Installation

cargo install job-security

Usage

  • to run a command, use
    jobs runcommand -- arguments
  • to suspend/stop a running program, Ctrl-Z!
  • to resume, use
    jobscontinue
  • to list all jobs, use
    jobs list

Limitations

  • Terminal environment is generally not preserved.jobs tries to preserve the current working directory, and environment variables for the commands it spawns, but not much more. If you define aliases, functions, etc. in your shell, those will not be visible to the command you run.
  • Not all shell expressions are supported. You can run zsh or bash expressions throughjobs, as they will be automatically wrap inzsh -c orbash -c. But due to the limitations of other shells (e.g. nushell), commands are run as is, and not interpreted.

About

job control from anywhere!

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages


[8]ページ先頭

©2009-2025 Movatter.jp