my dotz
2
fork

Configure Feed

Select the types of activity you want to include in your feed.

Simplify prompt, move to chromium

j3s a15e00c9 1632686d

+3 -8
+2 -7
bin/prompt.go
··· 4 4 "fmt" 5 5 "os" 6 6 "strings" 7 - "syscall" 8 7 "time" 9 8 ) 10 9 ··· 16 15 if strings.HasPrefix(cwd, home) { 17 16 cwd = "~" + cwd[len(home):] 18 17 } 19 - var sysinfo syscall.Sysinfo_t 20 - syscall.Sysinfo(&sysinfo) 21 - uptime := time.Duration(sysinfo.Uptime) * time.Second 22 - fmt.Printf("[%d:%02d:%02d] %s ", int64(uptime.Hours()), 23 - int64(uptime.Minutes()) % 60, int64(uptime.Seconds()) % 60, 24 - host) 18 + now := time.Now().Format("15:04:05") 19 + fmt.Printf("[%s] %s ", now, host) 25 20 26 21 parts = strings.Split(cwd, "/") 27 22 for i, part := range parts {
bin/x86_64/prompt

This is a binary file and will not be displayed.

+1 -1
bin/xdg-open
··· 1 1 #!/bin/sh 2 2 case "${1%%:*}" in 3 3 http|https) 4 - exec firefox "$1" 4 + exec chromium "$1" 5 5 ;; 6 6 *.pdf) 7 7 exec zathura "$1"