- Shell 100%
Correct to point the correct URL. Signed-off-by: EatDatPie_445 <eatdatpie_445@noreply.codeberg.org> |
||
|---|---|---|
| assets | ||
| LICENSE | ||
| README.md | ||
| rr.sh | ||
Ready Rsync (rr)
rr is a simple yet powerful Bash shell function designed to quickly generate formatted remote paths, primarily for use with tools like rsync, scp, or ssh.
It combines your current username, the system's IP address (IPv4 or IPv6), and the absolute path of a file, with optional path truncation for cleaner output. Features
- Customizable Host: Outputs the global IPv4 or IPv6 address.
- Path Truncation (Default): Automatically replaces the
$HOMEdirectory with~. - Absolute Path Mode: Option to force display of the full, absolute path.
- Seamless Integration: Defined as a function in your
.bashrcfor immediate use. - Autocompletion: Provides tab completion for all flags.
Installation
Since rr is a Bash function, installation involves adding the function definition and its associated completion logic to your shell configuration file (~/.bashrc or ~/.zshrc).
Option A: Copy and Paste (Recommended for stability)
Copy the entire contents of the rr.sh file and paste it directly into your ~/.bashrc.
Option B: Source the file
You can source the script directly from your home directory.
-
Download the function file:
mkdir -p ~/.local/bin/ && cd ./local/bin && wget https://codeberg.org/EatDatPie_445/Ready-Rsync/raw/branch/master/rr.sh -
Add the following line to the end of your
~/.bashrc:# Load the Ready Rsync Path Generator source ~/.local/bin/rr.sh
2. Reload Bash
Execute the following command or open a new terminal session:
source ~/.bashrc
This program is licensed under GPLv3 or Later.
