this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Add quick scp alias for copying remote files

+34 -2
+32
.config/fish/functions/sync_file.fish
··· 1 + function sync_file 2 + set -l scp_args 3 + 4 + if test (count -- $argv) != 3 5 + set -l cmd (status current-command) 6 + 7 + echo "$cmd: Copy a file to or from a remote using scp" 8 + echo 9 + echo "USAGE: $cmd {REMOTE FILE | FILE REMOTE}" 10 + echo 11 + echo "Examples:" 12 + echo 13 + echo " Copy local file to remote:" 14 + echo " $cmd my/local/file.txt root@1.1.1.1" 15 + echo 16 + echo " Copy remote file to local:" 17 + echo " $cmd myhost.com my/local/file.txt" 18 + echo 19 + 20 + return 1 21 + end 22 + 23 + if test -f $argv[1] 24 + echo "Copying '$argv[1]' to remote '$argv[2]'" 25 + set -a scp_args "$argv[1]" "$argv[2]:"(pwd)"/$argv[1]" 26 + else 27 + echo "Copying file '$argv[2]' from remote '$argv[1]'" 28 + set -a scp_args "$argv[1]:"(pwd)"/$argv[2]" "$argv[2]" 29 + end 30 + 31 + scp $scp_args 32 + end
+2 -2
.config/vscode/extensions.txt
··· 23 23 LaurentTreguier.rpm-spec@0.3.0 24 24 mariusschulz.yarn-lock-syntax@0.1.3 25 25 marko2276.yang@0.1.3 26 - matklad.rust-analyzer@0.2.256 26 + matklad.rust-analyzer@0.2.264 27 27 ms-azuretools.vscode-docker@1.4.1 28 - ms-pyright.pyright@1.1.58 28 + ms-pyright.pyright@1.1.59 29 29 ms-python.python@2020.7.96456 30 30 ms-vscode-remote.remote-ssh@0.51.0 31 31 ms-vscode-remote.remote-ssh-edit@0.51.0