ibraheemdev / modern-unix

A collection of modern/faster/saner alternatives to common unix commands.
30.59k stars 775 forks source link

add mln #61

Open tkmru opened 3 years ago

tkmru commented 3 years ago

A modern replacement for ln.

SuperSandro2000 commented 3 years ago

This is basically alias mln=ln -s

vtintillier commented 3 years ago

There's also the argument order stuff.

SuperSandro2000 commented 3 years ago

There's also the argument order stuff.

mln() {
  ln -s "$2" "$1"
}
vtintillier commented 3 years ago

My understanding is that it supports both ln -s source target and ln -s target source

slavaGanzin commented 3 years ago
mln() {
  ln -s "$1" "$2" || ln -s "$2" "$1"
}

but you dont' get it! it's written in GO! as all cool kids do

tkmru commented 3 years ago

Thank you for using the tools I created!

blaggacao commented 3 years ago

Unrelated, but sad. :cry:

nix profile install nixpkgs#mln
error: flake 'flake:nixpkgs' does not provide attribute 'packages.x86_64-linux.mln', 'legacyPackages.x86_64-linux.mln' or 'mln'