nb

command module
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 5 Imported by: 0

README

NB Terminal assistant

🔪 My terminal assistant, enhanced git, ssh, scp ... commands.

Installation

Config file example ./nb.yaml

go install github.com/naiba/nb@latest
nb # prepare config file to config path

Usage

# Load alias etc. can append to .profile/.zshrc
source <(/path-to-go/bin/nb --config-path /path-to-nb.yaml print-snippet profile)

# Print banner, can append to .profile/.zshrc
nb print-banner

# Connecting to SSH server via socks proxy
nb -p rpi-socks -ss github ssh

# Copy remote files via socks proxy
nb -p rpi-socks -ss github scp -v -r ./nb.yaml remote:/

# Specify an account to perform git operations
# This commit will be signed by naiba even if you are in the git repo of another account.
nb -gu naiba git commit -a -m "test"

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL