summaryrefslogtreecommitdiffstats
path: root/root
diff options
context:
space:
mode:
Diffstat (limited to 'root')
-rw-r--r--root/.profile4
1 files changed, 3 insertions, 1 deletions
diff --git a/root/.profile b/root/.profile
index 590eeee..de001c8 100644
--- a/root/.profile
+++ b/root/.profile
@@ -5,7 +5,9 @@ HISTFILESIZE=1000000000
shopt -s checkwinsize
function upload () {
chmod 0644 "$1"
- sftp -b- upload@upload <<< "put '$1' www/`[ '$2'x = x ] && echo $1 || echo $2`"
+ d=`[ '$2'x = x ] && echo $1 || echo $2`
+ sftp -b- upload@upload <<< "put '$1' www/$d"
+ echo https://upload.sijanec.eu./$d | xclip
}
function mcd () {
mkdir -p $@ && cd $@