-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
28 lines (23 loc) · 812 Bytes
/
Copy pathsetup.sh
File metadata and controls
28 lines (23 loc) · 812 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#!/usr/bin/env zsh
# get logged-in user
loggedInUser=$( scutil <<< "show State:/Users/ConsoleUser" | awk '/Name :/ && ! /loginwindow/ { print $3 }' )
# use find to get the dotfile filenames
# loop through to create symlinks
for dotFile in `find ./system -type f -exec basename {} \;`
do
echo "Creating symlink to $dotFile in home directory."
ln -s /Users/$loggedInUser/dotfiles/system/$dotFile /Users/$loggedInUser/$dotFile
done
# mkdir and configure neovim init.vim from ~/.vimrc
#mkdir /Users/$loggedInUser/.config
#mkdir /Users/$loggedInUser/.config/nvim
#
#cat > /Users/$loggedInUser/.config/nvim/init.vim << EOF
#set runtimepath^=~/.vim runtimepath+=~/.vim/after
#let &packpath = &runtimepath
#source ~/.vimrc
#EOF
# Run the Homebrew Script
sh ./brew.sh
# Run the dockutil Script
sh ./dockutil.sh