22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
|
# File 'lib/micro/menu/configurations.rb', line 22
def init(path = nil)
path ||= CONFIGURATION_PATHS.first
return if File.exist?(path)
File.write(path, " ---\n version: 0.1\n title: apps\n settings:\n editor: 'nvim'\n options:\n - name: 'DuckDuckGo /Search'\n value: duckduckgo\n type: link\n execute: 'https://duckduckgo.com'\n - name: '{{github}} Github'\n value: github\n type: link\n execute: 'https://github.com'\n - name: '{{github}} Github /Pull Requests'\n value: github_pulls\n type: link\n execute: 'https://github.com/pulls?q=is%3Apr+is%3Aopen+author%3A%40me+archived%3Afalse+sort%3Aupdated-desc'\n - name: '{{github}} Github /Issues'\n value: github_issues\n type: link\n execute: 'https://github.com/issues?q=is%3Aissue+is%3Aopen+author%3A%40me+archived%3Afalse+sort%3Aupdated-desc'\n - name: '{{github}} Github /Profile'\n value: github_profile\n type: link\n execute: 'https://github.com/dvinciguerra'\n - name: 'Rubygems'\n value: rubygems\n type: link\n execute: 'https://rubygems.org'\n - name: 'File Explorer'\n value: files\n type: command\n execute: 'ranger ${pwd}'\n - name: 'Tmux'\n value: tmux\n type: command\n execute: 'tmux'\n - name: 'Tmux /New Window'\n value: tmux_new_window\n type: command\n execute: 'tmux new-window'\n - name: 'Tmux /Kill Window'\n value: tmux_kill_window\n type: command\n execute: 'tmux kill-window'\n CONFIG\nend\n")
|