-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathzsh-ssh.zsh
More file actions
30 lines (24 loc) · 683 Bytes
/
zsh-ssh.zsh
File metadata and controls
30 lines (24 loc) · 683 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#!/usr/bin/env ksh
# -*- coding: utf-8 -*-
#
# Defines fzf ssh connect and provides easy command line file and folder sharing.
#
# Requirements:
# - fzf: https://github.com/junegunn/fzf
# - zsh: https://www.zsh.org/
#
# Based on: https://github.com/gko/ssh-connect
#
# Authors:
# Luis Mayta <slovacus@gmail.com>
#
# shellcheck disable=SC2034 # Unused variables left for readability
ZSH_SSH_PATH=$(dirname "${0}")
# shellcheck source=/dev/null
source "${ZSH_SSH_PATH}"/config/main.zsh
# shellcheck source=/dev/null
source "${ZSH_SSH_PATH}"/internal/main.zsh
# shellcheck source=/dev/null
source "${ZSH_SSH_PATH}"/pkg/main.zsh
zle -N ssh::connect
bindkey '^Xs' ssh::connect