Browse Source

forgot some stuff.

Forgot that i made it a hotkey. included comments and the keybind.
pull/8/head
throwawy903090909 2 years ago
parent
commit
647d75b30c
No account linked to committer's email address
1 changed files with 13 additions and 0 deletions
  1. 13
    0
      sshget

+ 13
- 0
sshget View File

@@ -3,6 +3,19 @@
#https://github.com/DanielFGray/fzf-scripts
#https://github.com/junegunn/fzf/issues/876 FZF delim change example using keybind script.
#Ref https://github.com/junegunn/fzf/commit/131aa5dd15788875e796bbd2f2bfdf644584284a for the fzf keybinding with two commands (run the subsscript + accept output)
# This was included in my zsh conf, takes a remote path as input and starts ssh get on that path, fills results into buffer.
# sshget (){
# # BUFFER=""\
# a="$(/path/to/sshget $BUFFER)"
# zle -R;
# BUFFER="$a";
# zle end-of-line
# }
# zle -N sshget
# bindkey "^]" sshget
##So the idea is host:/remote/folder/ + hotkey -> select files or multiple files -> check the resulting output and run.


declare -r esc=$'\033'
declare -r c_reset="${esc}[0m"
declare -r c_red="${esc}[31m"

Loading…
Cancel
Save