aboutsummaryrefslogtreecommitdiff
path: root/.local/bin/vim-clone
blob: 920dd1e5f91cf38c6109e39eb13ee666a043c4ec (plain)
1
2
3
4
5
6
7
8
#!/bin/sh -eu
repo=$1
temp="$(mktemp -d)"

git clone --depth=1 "${repo}" "${temp}";
cd "$temp" || exit 1;
vim;
rm -rf "${temp}";