Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/rumpl/slink
ln -s for humans
https://github.com/rumpl/slink
Last synced: 4 months ago
JSON representation
ln -s for humans
- Host: GitHub
- URL: https://github.com/rumpl/slink
- Owner: rumpl
- Created: 2022-09-22T10:21:16.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2022-09-22T20:55:51.000Z (over 2 years ago)
- Last Synced: 2024-04-15T03:09:27.896Z (10 months ago)
- Language: Rust
- Homepage:
- Size: 5.86 KB
- Stars: 7
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# slink
Create symlinks without hassle.
Do you know how to use `ln -s`? Do you really know which comes first the source or the target file? Do you know what's source and what's target?
Me neither.
This is exactly why `slink` exists!
In action:
```bash
$ ls -l
total 0
-rw-r--r-- 1 rumpl staff 0 22 Sep 12:17 a.txt
$ slink a.txt b.txt
$ ls -l
total 0
-rw-r--r-- 1 rumpl staff 0 22 Sep 12:17 a.txt
lrwxr-xr-x 1 rumpl staff 5 22 Sep 12:17 b.txt -> a.txt
$ rm b.txt
$ slink b.txt a.txt
$ ls -l
$ ls -l
total 0
-rw-r--r-- 1 rumpl staff 0 22 Sep 12:17 a.txt
lrwxr-xr-x 1 rumpl staff 5 22 Sep 12:17 b.txt -> a.txt
```That's right, no need to know which comes first, `slink` will always do what you want, no questions asked.