~repos /config

#brew#nushell

git clone https://pyrossh.dev/repos/config.git

Common configuration


394cfc99 Peter John

10 months ago
add posh powerline
Files changed (5) hide show
  1. helix/config.toml +1 -1
  2. nushell/config.nu +1 -1
  3. nushell/env.nu +4 -3
  4. setup.sh +2 -2
  5. term.json +239 -0
helix/config.toml CHANGED
@@ -1,4 +1,4 @@
1
- theme = "jetbrains_dark"
1
+ theme = "dark_plus"
2
2
 
3
3
  [editor.cursor-shape]
4
4
  normal = "block"
nushell/config.nu CHANGED
@@ -205,7 +205,7 @@ $env.config = {
205
205
 
206
206
  history: {
207
207
  max_size: 100_000 # Session has to be reloaded for this to take effect
208
- sync_on_enter: true # Enable to share history between multiple sessions, else you have to close the session to write history to file
208
+ sync_on_enter: false # Enable to share history between multiple sessions, else you have to close the session to write history to file
209
209
  file_format: "plaintext" # "sqlite" or "plaintext"
210
210
  isolation: false # only available with sqlite file_format. true enables history isolation, false disables it. true will allow the history to be isolated to the current session using up/down arrows. false will allow the history to be shared across all sessions.
211
211
  }
nushell/env.nu CHANGED
@@ -86,9 +86,10 @@ $env.NU_PLUGIN_DIRS = [
86
86
  ($nu.default-config-dir | path join 'plugins') # add <nushell-config-dir>/plugins
87
87
  ]
88
88
 
89
+ $env.PROMPT_COMMAND = { || oh-my-posh prompt print primary --config $'/opt/homebrew/opt/oh-my-posh/themes/zash.omp.json' }
90
+ $env.PROMPT_INDICATOR = $"(ansi y)$> (ansi reset)"
91
+
89
92
  use std "path add"
90
93
  $env.PATH = ($env.PATH | split row (char esep))
91
94
  path add /opt/homebrew/bin
92
- # path add ($env.CARGO_HOME | path join "bin")
95
+ path add ~/.cargo/bin
93
- # path add ($env.HOME | path join ".local" "bin")
94
-
setup.sh CHANGED
@@ -1,8 +1,8 @@
1
1
  brew install nu helix zellij colima docker kubectl kubectx \
2
- openjdk gradle mas cocoapods kdoctor nextdns node
2
+ openjdk gradle mas cocoapods kdoctor nextdns node jandedobbeleer/oh-my-posh/oh-my-posh
3
3
 
4
4
  brew --cask install visual-studio-code android-studio intellij-idea iterm2 google-chrome \
5
- obsidian secretive mpv stats font-ubuntu font-ubuntu-mono postico
5
+ obsidian secretive mpv stats font-ubuntu font-ubuntu-mono font-ubuntu-mono-nerd-font postico
6
6
 
7
7
  mas install 497799835 # installs xcode
8
8
  echo /opt/homebrew/bin/nu | sudo tee -a /etc/shells
term.json ADDED
@@ -0,0 +1,239 @@
1
+ {
2
+ "Ansi 6 Color" : {
3
+ "Red Component" : 0.25882352941176473,
4
+ "Color Space" : "sRGB",
5
+ "Blue Component" : 0.81960784313725488,
6
+ "Alpha Component" : 1,
7
+ "Green Component" : 0.7686274509803922
8
+ },
9
+ "Tags" : [
10
+
11
+ ],
12
+ "Ansi 12 Color" : {
13
+ "Red Component" : 0.34509803921568627,
14
+ "Color Space" : "sRGB",
15
+ "Blue Component" : 1,
16
+ "Alpha Component" : 1,
17
+ "Green Component" : 0.53725490196078429
18
+ },
19
+ "Horizontal Spacing" : 1,
20
+ "Draw Powerline Glyphs" : true,
21
+ "Bold Color" : {
22
+ "Red Component" : 0.95686274509803926,
23
+ "Color Space" : "sRGB",
24
+ "Blue Component" : 0.95686274509803926,
25
+ "Alpha Component" : 1,
26
+ "Green Component" : 0.95686274509803926
27
+ },
28
+ "Normal Font" : "LigaMenlo-Regular 14",
29
+ "Link Color" : {
30
+ "Red Component" : 0.34509803921568627,
31
+ "Color Space" : "sRGB",
32
+ "Blue Component" : 1,
33
+ "Alpha Component" : 1,
34
+ "Green Component" : 0.53725490196078429
35
+ },
36
+ "Ansi 4 Color" : {
37
+ "Red Component" : 0.43137254901960786,
38
+ "Color Space" : "sRGB",
39
+ "Blue Component" : 1,
40
+ "Alpha Component" : 1,
41
+ "Green Component" : 0.38039215686274508
42
+ },
43
+ "Rows" : 25,
44
+ "Default Bookmark" : "No",
45
+ "Right Option Key Sends" : 0,
46
+ "Non-ASCII Anti Aliased" : true,
47
+ "Use Bright Bold" : true,
48
+ "Ansi 10 Color" : {
49
+ "Red Component" : 0,
50
+ "Color Space" : "sRGB",
51
+ "Blue Component" : 0,
52
+ "Alpha Component" : 1,
53
+ "Green Component" : 0.85098039215686272
54
+ },
55
+ "Ambiguous Double Width" : false,
56
+ "Jobs to Ignore" : [
57
+ "rlogin",
58
+ "ssh",
59
+ "slogin",
60
+ "telnet"
61
+ ],
62
+ "Ansi 15 Color" : {
63
+ "Red Component" : 0.95686274509803926,
64
+ "Color Space" : "sRGB",
65
+ "Blue Component" : 0.95686274509803926,
66
+ "Alpha Component" : 1,
67
+ "Green Component" : 0.95686274509803926
68
+ },
69
+ "Foreground Color" : {
70
+ "Red Component" : 0.95686274509803926,
71
+ "Color Space" : "sRGB",
72
+ "Blue Component" : 0.95686274509803926,
73
+ "Alpha Component" : 1,
74
+ "Green Component" : 0.95686274509803926
75
+ },
76
+ "Use Tab Color" : false,
77
+ "Blinking Cursor" : false,
78
+ "Disable Window Resizing" : true,
79
+ "Sync Title" : false,
80
+ "Prompt Before Closing 2" : false,
81
+ "BM Growl" : true,
82
+ "Command" : "",
83
+ "Description" : "iTerm2",
84
+ "Mouse Reporting" : true,
85
+ "Screen" : -1,
86
+ "Selection Color" : {
87
+ "Red Component" : 0.49770425799806617,
88
+ "Color Space" : "sRGB",
89
+ "Blue Component" : 0.92981290817260742,
90
+ "Alpha Component" : 1,
91
+ "Green Component" : 0.69699200708257314
92
+ },
93
+ "Initial Use Transparency" : true,
94
+ "Columns" : 80,
95
+ "Idle Code" : 0,
96
+ "Working Dirctory" : "\/Users\/peterjohn",
97
+ "Ansi 13 Color" : {
98
+ "Red Component" : 0.89803921568627454,
99
+ "Color Space" : "sRGB",
100
+ "Blue Component" : 0.89411764705882357,
101
+ "Alpha Component" : 1,
102
+ "Green Component" : 0.0039215686274509786
103
+ },
104
+ "Title Components" : 128,
105
+ "Brighten Bold Text" : true,
106
+ "Custom Command" : "No",
107
+ "ASCII Anti Aliased" : true,
108
+ "Non Ascii Font" : "Monaco 12",
109
+ "Vertical Spacing" : 1,
110
+ "Use Bold Font" : true,
111
+ "Option Key Sends" : 0,
112
+ "Selected Text Color" : {
113
+ "Red Component" : 0.74152278900146484,
114
+ "Color Space" : "sRGB",
115
+ "Blue Component" : 0.41893920307893495,
116
+ "Alpha Component" : 1,
117
+ "Green Component" : 0.41893920307893495
118
+ },
119
+ "Background Color" : {
120
+ "Red Component" : 0.094117647058823528,
121
+ "Color Space" : "sRGB",
122
+ "Blue Component" : 0.15686274509803921,
123
+ "Alpha Component" : 1,
124
+ "Green Component" : 0.11764705882352941
125
+ },
126
+ "Character Encoding" : 4,
127
+ "Ansi 11 Color" : {
128
+ "Red Component" : 0.90196078431372551,
129
+ "Color Space" : "sRGB",
130
+ "Blue Component" : 0,
131
+ "Alpha Component" : 1,
132
+ "Green Component" : 0.89803921568627454
133
+ },
134
+ "Thin Strokes" : 0,
135
+ "Use Italic Font" : true,
136
+ "Unlimited Scrollback" : true,
137
+ "Keyboard Map" : {
138
+ "0x77-0x100000-0xd" : {
139
+ "Version" : 1,
140
+ "Action" : 38,
141
+ "Text" : ":ToggleTerm\\n",
142
+ "Label" : ""
143
+ }
144
+ },
145
+ "Window Type" : 0,
146
+ "Cursor Type" : 1,
147
+ "Background Image Location" : "",
148
+ "Blur" : false,
149
+ "Allow Title Setting" : false,
150
+ "Scrollback Lines" : 0,
151
+ "Send Code When Idle" : false,
152
+ "Close Sessions On End" : true,
153
+ "Terminal Type" : "xterm-256color",
154
+ "Visual Bell" : true,
155
+ "Flashing Bell" : false,
156
+ "Silence Bell" : false,
157
+ "Use Underline Color" : false,
158
+ "Ansi 14 Color" : {
159
+ "Red Component" : 0.34509803921568627,
160
+ "Color Space" : "sRGB",
161
+ "Blue Component" : 1,
162
+ "Alpha Component" : 1,
163
+ "Green Component" : 0.53725490196078429
164
+ },
165
+ "Unicode Version" : 9,
166
+ "ASCII Ligatures" : true,
167
+ "Name" : "iTerm2",
168
+ "Cursor Text Color" : {
169
+ "Green Component" : 1,
170
+ "Red Component" : 1,
171
+ "Blue Component" : 1
172
+ },
173
+ "Shortcut" : "",
174
+ "Cursor Color" : {
175
+ "Red Component" : 1,
176
+ "Color Space" : "sRGB",
177
+ "Blue Component" : 1,
178
+ "Alpha Component" : 1,
179
+ "Green Component" : 1
180
+ },
181
+ "Ansi 0 Color" : {
182
+ "Green Component" : 0,
183
+ "Red Component" : 0,
184
+ "Blue Component" : 0
185
+ },
186
+ "Ansi 1 Color" : {
187
+ "Red Component" : 0.59999999999999998,
188
+ "Color Space" : "sRGB",
189
+ "Blue Component" : 0.0039215686274509786,
190
+ "Alpha Component" : 1,
191
+ "Green Component" : 0
192
+ },
193
+ "Ansi 2 Color" : {
194
+ "Red Component" : 0.25098039215686274,
195
+ "Color Space" : "sRGB",
196
+ "Blue Component" : 0.19215686274509805,
197
+ "Alpha Component" : 1,
198
+ "Green Component" : 0.7803921568627451
199
+ },
200
+ "Ansi 3 Color" : {
201
+ "Red Component" : 0.59999999999999998,
202
+ "Color Space" : "sRGB",
203
+ "Blue Component" : 0,
204
+ "Alpha Component" : 1,
205
+ "Green Component" : 0.59999999999999998
206
+ },
207
+ "Custom Directory" : "Recycle",
208
+ "Ansi 5 Color" : {
209
+ "Red Component" : 0.8901960784313725,
210
+ "Color Space" : "sRGB",
211
+ "Blue Component" : 0.88235294117647056,
212
+ "Alpha Component" : 1,
213
+ "Green Component" : 0.29803921568627451
214
+ },
215
+ "Use Non-ASCII Font" : false,
216
+ "Ansi 7 Color" : {
217
+ "Red Component" : 0.95686274509803926,
218
+ "Color Space" : "sRGB",
219
+ "Blue Component" : 0.95686274509803926,
220
+ "Alpha Component" : 1,
221
+ "Green Component" : 0.95686274509803926
222
+ },
223
+ "Ansi 8 Color" : {
224
+ "Red Component" : 0.40000000000000002,
225
+ "Color Space" : "sRGB",
226
+ "Blue Component" : 0.40000000000000002,
227
+ "Alpha Component" : 1,
228
+ "Green Component" : 0.40000000000000002
229
+ },
230
+ "Ansi 9 Color" : {
231
+ "Red Component" : 0.90196078431372551,
232
+ "Color Space" : "sRGB",
233
+ "Blue Component" : 0.0039215686274509786,
234
+ "Alpha Component" : 1,
235
+ "Green Component" : 0
236
+ },
237
+ "Transparency" : 0,
238
+ "Guid" : "8EB11186-A4A6-4322-97BC-8385D9A5C82C"
239
+ }