adjust prompt, use vim github highlighting
Jes Olson jolson@digitalocean.com
Tue, 26 Oct 2021 10:39:57 -0500
3 files changed,
11 insertions(+),
1 deletions(-)
M
.config/nvim/init.vim
→
.config/nvim/init.vim
@@ -4,7 +4,11 @@ Plug 'neovim/nvim-lspconfig'
Plug 'nvim-lua/plenary.nvim' " lua funcs i guess Plug 'vhyrro/neorg' Plug 'hrsh7th/nvim-compe' +Plug 'ctrlpvim/ctrlp.vim' +Plug 'cormacrelf/vim-colors-github' call plug#end() + +colorscheme github " idk, this resolved the following weirdness: " https://github.com/vim/vim/issues/2049
M
bin/prompt.go
→
bin/prompt.go
@@ -10,13 +10,19 @@
func main() { cwd, _ := os.Getwd() host, _ := os.Hostname() + emoji := "💀" + if host == "zora" { + emoji = "🍣" + } else if host == "nostromo" { + emoji = "🛸" + } home := os.Getenv("HOME") var parts []string if strings.HasPrefix(cwd, home) { cwd = "~" + cwd[len(home):] } now := time.Now().Format("15:04:05") - fmt.Printf("[%s] 🍣%s ", now, host) + fmt.Printf("[%s] %s%s ", now, emoji, host) parts = strings.Split(cwd, "/") for i, part := range parts {