add copyback function

This commit is contained in:
Jakobus Schürz 2020-02-12 12:46:50 +01:00
parent 8d7d52aee2
commit 6aa13d0fdf

View file

@ -6,6 +6,10 @@
export TMUX_SESSION_DIRS SETPROXY_CREDS_DIRS KERBEROS_CONFIG_DIRS export TMUX_SESSION_DIRS SETPROXY_CREDS_DIRS KERBEROS_CONFIG_DIRS
cpb() {
scp "$1" ${SSH_CLIENT%% *}:~/Work
}
sudo() { sudo() {
local SUDO local SUDO
SUDO=$( if [ -e /bin/sudo ]; then echo /bin/sudo; else echo /usr/bin/sudo; fi ) SUDO=$( if [ -e /bin/sudo ]; then echo /bin/sudo; else echo /usr/bin/sudo; fi )