Merge pull request #43 from Milziade/add-alias

Fix #41
This commit is contained in:
Arun Prakash Jana
2025-05-12 21:03:58 +05:30
committed by GitHub

View File

@@ -1,6 +1,6 @@
![advcpmv](https://web.archive.org/web/20131217004029im_/http://beatex.org/web/advcopy/advcpmv-screen-20130313.png) ![advcpmv](https://web.archive.org/web/20131217004029im_/http://beatex.org/web/advcopy/advcpmv-screen-20130313.png)
## Advanced Copy ## ## Advanced Copy
Advanced Copy is a mod for the GNU cp and GNU mv tools which adds a progress bar and provides some info on what's going on. It was written by Florian Zwicke and released under the GPL. Advanced Copy is a mod for the GNU cp and GNU mv tools which adds a progress bar and provides some info on what's going on. It was written by Florian Zwicke and released under the GPL.
@@ -11,16 +11,20 @@ advcpmv-0.5-8.21.patch was the last patch released by the author (on February 14
## Build instructions ## Build instructions
Requires the following dependencies: Requires the following dependencies:
- patch - patch
- gcc - gcc
Run the following command to download, patch, compile coreutils and generate the files: `./advcpmv/advcp` and `./advcpmv/advmv`. Run the following command to download, patch, compile coreutils and generate the files: `./advcpmv/advcp` and `./advcpmv/advmv`.
Bash: Bash:
``` ```
curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh && (cd advcpmv && sh install.sh) curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh && (cd advcpmv && sh install.sh)
``` ```
Fish: Fish:
``` ```
curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh; and begin; cd advcpmv; and sh install.sh; end curl https://raw.githubusercontent.com/jarun/advcpmv/master/install.sh --create-dirs -o ./advcpmv/install.sh; and begin; cd advcpmv; and sh install.sh; end
``` ```
@@ -54,17 +58,21 @@ sudo mv ./advcpmv/advmv /usr/local/bin/
``` ```
Bash: Bash:
``` ```
echo alias cp '/usr/local/bin/advcp -g' >> ~/.bashrc echo -e 'alias cp=\x27/usr/local/bin/cpg -g\x27' >> ~/.bashrc
echo alias mv '/usr/local/bin/advmv -g' >> ~/.bashrc echo -e 'alias mv=\x27/usr/local/bin/mvg -g\x27' >> ~/.bashrc
``` ```
Fish: Fish:
``` ```
echo alias cp '/usr/local/bin/advcp -g' >> ~/.config/fish/config.fish echo alias cp '/usr/local/bin/advcp -g' >> ~/.config/fish/config.fish
echo alias mv '/usr/local/bin/advmv -g' >> ~/.config/fish/config.fish echo alias mv '/usr/local/bin/advmv -g' >> ~/.config/fish/config.fish
``` ```
```
```
## Upstream merge ## Upstream merge
The original author sent the patch to the team, that maintains the GNU CoreUtils. They won't merge this patch, because mv and cp are feature complete. The original author sent the patch to the team, that maintains the GNU CoreUtils. They won't merge this patch, because mv and cp are feature complete.
```