Skip to content

Commit

Permalink
v0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBrown committed Oct 22, 2020
1 parent 8a690e3 commit 6afff9f
Show file tree
Hide file tree
Showing 6 changed files with 10,733 additions and 22 deletions.
20 changes: 2 additions & 18 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,18 +1,2 @@
# Build and Release Folders
bin-debug/
bin-release/
[Oo]bj/
[Bb]in/

# Other files and folders
.settings/

# Executables
*.swf
*.air
*.ipa
*.apk

# Project files, i.e. `.project`, `.actionScriptProperties` and `.flexProperties`
# should NOT be excluded as they contain compiler settings and other important
# information for Eclipse / Flash Builder.
.DS_Store
TODO
5 changes: 3 additions & 2 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
MIT License
MIT+ License

Copyright (c) 2020 Joss Brown (pseud.) -- German laws apply -- Place of jurisdiction: Berlin, Germany

Copyright (c) 2020 Joss Brown

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
Expand Down
21 changes: 21 additions & 0 deletions Linker_QuickAction.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
#!/bin/zsh

# Linker Finder QuickAction
# version 1.0.0

export LANG=en_US.UTF-8
export PATH=/usr/bin:/usr/sbin:/bin:/sbin:/usr/local/bin:/opt/local/bin:/opt/sw/bin:/sw/bin:$HOME/.local/bin:$HOME/local/bin:$HOME/bin:$HOME/Developer/bin

if ! command -v linker &>/dev/null ; then
account=$(id -u)
osascript &>/dev/null << EOT
beep
tell application "System Events"
display notification "Linker main script not found!" with title "Linker [" & "$account" & "]" subtitle "❌ Error: \$PATH"
end tell
EOT
exit
fi

linker "$@" &
exit
33 changes: 33 additions & 0 deletions README
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
Linker is a macOS shell script and Finder QuickAction to create relative or absolute symbolic links, hard links, Finder aliases, file clones or legacy file copies

Latest release: LINK

* install linker shell script into your $PATH

* supported paths for installation:
/usr/local/bin
/opt/local/bin
/opt/sw/bin
/sw/bin
~/.local/bin
~/local/bin
~/bin
~/Developer/bin

* install QuickAction (workflow) with Automator Installer

In Finder you can just use the QuickAction from the contextual menu.

On the command-line or for tool integration in file managers like Nimble Commander you will have the following options:

linker
-a : create Finder alias
-c : create cloned file copy (only on APFS)
-d : create legacy file copy (true duplicate)
-h : create hard link (only on HFS+ volumes)
-r : create symbolic link with relative path
-s : create symbolic link with absolute path

Please note that even the above options will still use the GUI for the user to select the destination directory.

Linker uses a code snippet from StackExchange: https://unix.stackexchange.com/a/85068/222515
2 changes: 0 additions & 2 deletions README.md

This file was deleted.

Loading

0 comments on commit 6afff9f

Please sign in to comment.