2023-01-14 14:06:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
if [[ -z $1 ]]; then echo "Expected a file but got nothing"; exit 1; fi
|
|
|
|
|
2023-07-30 17:22:43 +00:00
|
|
|
if [[ ! -d ~/.vim/syntax ]]; then mkdir -p ~/.vim/syntax; fi
|
|
|
|
if [[ ! -d ~/.vim/ftdetect ]]; then mkdir -p ~/.vim/ftdetect; fi
|
|
|
|
|
2023-01-14 14:06:44 +00:00
|
|
|
cp $1 ~/.vim/syntax/$1
|
|
|
|
cp "${1}.ftd" ~/.vim/ftdetect/$1
|
|
|
|
|
|
|
|
echo "Installed $1"
|