Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/bartekpog/bash-copy-paste

Windows-style copy and paste files in bash
https://github.com/bartekpog/bash-copy-paste

Last synced: 17 days ago
JSON representation

Windows-style copy and paste files in bash

Awesome Lists containing this project

README

        

### Windows Style Ctrl+C Ctrl+V

This repository contains a set of **Bash** scripts for _copy_, _cut_ and _paste_ commands.

###### Ctrl + C

```bash
bart@ubuntu ~ $ ctc scripts/
Copy: scripts/
Cached for copy
bart@ubuntu ~ $
```

###### Ctrl + X

```bash
bart@ubuntu ~ $ ctx scripts/
Cut: scripts/
Cached for cut
bart@ubuntu ~ $
```

###### Ctrl + V

```bash
bart@ubuntu ~/tmp $ ctv
Successfully copied/cut files
Cleared cache
bart@ubuntu ~/tmp $
```

#### But why?

During my period of learning Bash I found it unusual to have to provide full or relative paths for both source and destination. It was acceptable for copying and pasting one or two files somewhere next to the current directory, but it was a bit of a pain while copying multiple files in very different directories. That's why! :D