bookshelfdave / simlink

ln -s, troll me no more!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

simlink

Do you remember the order of args to make a symlink? I usually don't!

Simlink is just a wrapper around ln -s, but it doesn't care which order you specify arguments! All you need is a file/directory that exists, and one that doesn't (yet!). This is going to change the world!!

Building

You'll need Rust >= 1.6.0.

cargo install simlink

or if you want to build it locally:

cargo build
./target/debug/simlink some_path some_other_path

Demo

# ~/.vimrc exists, the others do not.

simlink ~/.foo ~/.vimrc
simlink ~/.vimrc ~/.bar

Are you serious?

  • no, not really.

  • keep in mind that most Unix utils take "the existing file" first

      ln -s /some/existing/file some_new_file
    

© 2022 Dave Parfitt

About

ln -s, troll me no more!

License:Apache License 2.0


Languages

Language:Rust 100.0%