File tree Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Expand file tree Collapse file tree 3 files changed +6
-14
lines changed Original file line number Diff line number Diff line change 1
1
pkgbase = pulsarship
2
2
pkgdesc = 🚀🌠 A minimal, fast, and customizable prompt written in Go
3
- pkgver = 0.2.3
3
+ pkgver = 0.2.4
4
4
pkgrel = 1
5
5
url = https://github.com/xeyossr/pulsarship
6
6
arch = x86_64
@@ -10,7 +10,7 @@ pkgbase = pulsarship
10
10
license = GPL3
11
11
makedepends = go
12
12
makedepends = git
13
- source = git+https://github.com/xeyossr/pulsarship.git#tag=v0.2.3
13
+ source = git+https://github.com/xeyossr/pulsarship.git#tag=v0.2.4
14
14
sha256sums = SKIP
15
15
16
16
pkgname = pulsarship
Original file line number Diff line number Diff line change 1
- # Maintainer: kamisaki
1
+ # Maintainer: xeyossr
2
2
# Description: 🚀🌠 A minimal, fast, and customizable prompt written in Go
3
3
4
4
pkgname=pulsarship
5
- pkgver=0.2.3
5
+ pkgver=0.2.4
6
6
pkgrel=1
7
7
pkgdesc=" 🚀🌠 A minimal, fast, and customizable prompt written in Go"
8
8
arch=(' x86_64' ' aarch64' ' armv7h' ' i686' )
Original file line number Diff line number Diff line change @@ -22,16 +22,8 @@ func init() {
22
22
}
23
23
24
24
func (u * UsernameComponent ) Val () (string , error ) {
25
- username , err := user .Current ()
26
- if def := utils .Must (err , "" ); def != nil {
27
- return * def , err
28
- }
29
-
30
- if username .Name == "" {
31
- return "" , nil
32
- }
33
-
34
- return username .Name , nil
25
+ username := os .Getenv ("USER" )
26
+ return username , nil
35
27
}
36
28
37
29
func (u * UsernameComponent ) Render () (models.Result , error ) {
You can’t perform that action at this time.
0 commit comments