mirror of
https://github.com/tedkulp/dotfiles
synced 2026-04-24 22:54:48 -04:00
Concept of "post" files. Added one for running vim-config setup automatically.
Also, updated vim-config to the latest version.
This commit is contained in:
@@ -8,6 +8,10 @@ function link_file() {
|
|||||||
ln -sf ${2#$HOME/} ~/
|
ln -sf ${2#$HOME/} ~/
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function post_file() {
|
||||||
|
source "$2"
|
||||||
|
}
|
||||||
|
|
||||||
function copy_or_link() {
|
function copy_or_link() {
|
||||||
local base dest
|
local base dest
|
||||||
local cmd="find $HOME/dotfiles/$1 -mindepth 1 -maxdepth 1"
|
local cmd="find $HOME/dotfiles/$1 -mindepth 1 -maxdepth 1"
|
||||||
@@ -26,3 +30,4 @@ function copy_or_link() {
|
|||||||
|
|
||||||
copy_or_link "link"
|
copy_or_link "link"
|
||||||
# copy_or_link "copy"
|
# copy_or_link "copy"
|
||||||
|
copy_or_link "post"
|
||||||
|
|||||||
+1
-1
Submodule link/vim-config updated: f1e319e802...d7da1f8b0f
Executable
+3
@@ -0,0 +1,3 @@
|
|||||||
|
cd ~/vim-config
|
||||||
|
|
||||||
|
./setup.sh
|
||||||
Reference in New Issue
Block a user