spacemacs works + ohmyposh theme improvement

added username to right side of prompt
edit-with-spacemacs works with multiple files, even if they have spaces
in the file name
if emacs is installed and edit-with-spacemacs exists, that will become
the vi of chioce for the user.
This commit is contained in:
Gal Szkolnik 2022-06-03 10:49:50 -04:00
parent d6169ea75a
commit 8cb6f49db9
3 changed files with 18 additions and 12 deletions

View File

@ -3,7 +3,7 @@ Name=Spacemacs (Client)
Comment=GNU Emacs is an extensible, customizable text editor - and more Comment=GNU Emacs is an extensible, customizable text editor - and more
Icon=emacs Icon=emacs
Type=Application Type=Application
Exec=~/.local/bin/edit-with-spacemacs Exec=sh -c "~/.local/bin/edit-with-spacemacs"
Terminal=false Terminal=false
Categories=Utility;Development;TextEditor; Categories=Utility;Development;TextEditor;

View File

@ -1,10 +0,0 @@
[Desktop Entry]
Name=[Spacemacs Daemon]
Comment=GNU Emacs is an extensible, customizable text editor - and more
Icon=emacs
Type=Application
Exec=/usr/bin/emacs --with-profile spacemacs --daemon
Terminal=false
Categories=Utility;Development;TextEditor;
Keywords=Text;Editor;
Version=1.0

View File

@ -173,6 +173,22 @@
"template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} ", "template": "{{ if gt .Code 0 }}{{ .Meaning }}{{ else }}\u2714{{ end }} ",
"type": "exit" "type": "exit"
}, },
{
"background": "#4063D8",
"background_templates": [
"{{ if .Root }}lightRed{{ end }}"
],
"foreground": "#d3d7cf",
"properties": {
"display_host": true
},
"invert_powerline": true,
"style": "powerline",
"powerline_symbol": "\ue0b2",
"template": "<{{ if .Root }}lightBlue{{ else }}green{{ end }}></>{{ .UserName }}{{ if .Root }}!{{ else }}@{{ end }}{{ .HostName }}<{{ if .Root }}lightBlue{{ else }}green{{ end }}></> \uf2bd ",
"trailing_diamond": "\ue0b0\u2500\u256e",
"type": "session"
},
{ {
"background": "#d3d7cf", "background": "#d3d7cf",
"foreground": "#000000", "foreground": "#000000",