diff options
author | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-12 00:14:24 +0200 |
---|---|---|
committer | Anton Luka Šijanec <anton@sijanec.eu> | 2023-07-12 00:14:24 +0200 |
commit | 2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad (patch) | |
tree | 7077e571c1e47b35da92b678986c7ba1387aea30 /root/.bash_aliases | |
parent | c (diff) | |
download | n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar.gz n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar.bz2 n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar.lz n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar.xz n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.tar.zst n-2ef8fe248f0a2ae56ef7a9cc1288be6516d3b7ad.zip |
Diffstat (limited to 'root/.bash_aliases')
-rw-r--r-- | root/.bash_aliases | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/root/.bash_aliases b/root/.bash_aliases index 1e766a8..5828e86 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -23,9 +23,10 @@ shopt -s histappend HISTSIZE=100000000 HISTFILESIZE=1000000000 function upload () { - chmod 0644 "$1" + # chmod 0644 "$1" d=`[ '$2'x = x ] && echo $1 || echo $2` sftp -b- upload@upload.sijanec.eu <<< "put '$1' www/$d" + ssh upload@upload.sijanec.eu chmod 0644 "www/$d" echo https://upload.sijanec.eu./$d | xclip } function mcd () { |