summaryrefslogtreecommitdiff
path: root/storage
diff options
context:
space:
mode:
authorAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-28 14:58:57 +0300
committerAlexander Neonxp Kiryukhin <i@neonxp.ru>2024-08-28 14:58:57 +0300
commit094e63a2ef716876fc299d03be02f90218266d21 (patch)
tree01f4b71e683648bd0fe38400fc3d3f13ba05471a /storage
parent459b87480e76d9be275b0ee8a30e4b691af8aaba (diff)
fix readme
Diffstat (limited to 'storage')
-rw-r--r--storage/index.html22
1 files changed, 22 insertions, 0 deletions
diff --git a/storage/index.html b/storage/index.html
index a83c858..4cfaf0e 100644
--- a/storage/index.html
+++ b/storage/index.html
@@ -6,8 +6,30 @@
<title>NixShare</title>
</head>
<body>
+ <h1>Nixshare</h1>
+ <h2>Usage:</h2>
+ <h3>Upload file:</h3>
<pre>
curl -d @FILENAME https://nixshare.ru/upload
</pre>
+ <h3>Upload clipboard:</h3>
+ <p>X:</p>
+ <pre>
+ xclip -o | curl -d @- https://nixshare.ru/upload
+ </pre>
+ <p>Wayland (<code>wl-clipboard</code> required):</p>
+ <pre>
+ wl-paste | curl -d @- https://nixshare.ru/upload
+ </pre>
+ <h3>Shell alias:</h3>
+ <p>You can add shell aliases to .bashrc or .zshrc file:</p>
+ <p>X:</p>
+ <pre>
+ alias nsh="xclip -o | curl -d @- https://nixshare.ru/upload 2>/dev/null | xclip"
+ </pre>
+ <p>Wayland (<code>wl-clipboard</code> required):</p>
+ <pre>
+ alias nsh="wl-paste | curl -d @- https://nixshare.ru/upload 2>/dev/null | wl-copy"
+ </pre>
</body>
</html> \ No newline at end of file