mirror of
https://github.com/DefectingCat/dotfiles
synced 2025-07-15 16:51:36 +00:00
15 lines
248 B
Bash
15 lines
248 B
Bash
#!/bin/env bash
|
|
|
|
# scp ~/.vimrc root@192.168.1.16:/home/root/.vimrc
|
|
scp_vim() {
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: scp_vim <host>"
|
|
return 1
|
|
fi
|
|
|
|
HOST=$1
|
|
|
|
scp ~/.vimrc $HOST:~/.vimrc
|
|
scp -r -O ~/.vim $HOST:~/.vim
|
|
}
|