File tree Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Expand file tree Collapse file tree 3 files changed +25
-7
lines changed Original file line number Diff line number Diff line change 1
1
# Dot-Vault
2
2
My own dotfile management tool, written in Lua!
3
3
4
- Still need to install the apps myself to the system not just run script
5
-
6
4
# How to install dependencies
7
5
` chmod +x install.sh ; ./install.sh `
8
6
9
7
# How to make script global
10
8
Give correct permissions to script
11
9
` chmod +x dvc.lua `
12
- Move to ~ /.local/bin via sudo
13
- ` sudo mv dvc.lua /usr/local/bin/dvc `
14
- or copy the file to ~ /.local/bin
15
- ` sudo cp dvc.lua /usr/local/bin/dvc `
10
+ Then run ` globalize.sh `
16
11
17
12
## Dependencies
18
13
` lua, git, luarocks `
Original file line number Diff line number Diff line change @@ -14,7 +14,7 @@ function help_screen()
14
14
]] )
15
15
end
16
16
function version ()
17
- local project_verison = " v1.3.0 "
17
+ local project_verison = " v1.3.2 "
18
18
print ([[
19
19
20
20
$$$$$$$\ $$\ $$\ $$\ $$\ $$\ $$$$$$\ $$\ $$$$$$\
@@ -31,6 +31,16 @@ function version()
31
31
end
32
32
33
33
function installation ()
34
+ print (" Confirm you want to install dotfiles? [Y/n]" )
35
+ local confirm_install = io.read ()
36
+ if confirm_install == " N" or confirm_install == " n" then
37
+ os.exit (1 )
38
+ elseif confirm_install == " Y" or confirm_install == " y" then
39
+ print (" Preceding..." )
40
+ else
41
+ print (confirm_install .. " was not an option" )
42
+ end
43
+
34
44
local home = os.getenv (" HOME" )
35
45
local used_configs = io.open (" used_configs.txt" , " r" )
36
46
if not used_configs then
Original file line number Diff line number Diff line change
1
+ #! /bin/bash
2
+ read -p " Do you want to make DVC global? [Y/n] " response
3
+
4
+ # Default to "Y" if empty
5
+ response=${response:- Y}
6
+
7
+ if [[ " $response " == " y" || " $response " == " Y" ]]; then
8
+ sudo cp dvc.lua /usr/local/bin/dvc
9
+ echo " DVC installed globally."
10
+ else
11
+ echo " Exiting"
12
+ fi
13
+
You can’t perform that action at this time.
0 commit comments