Commit graph

16 commits

Author SHA1 Message Date
Nathan Wykes 9c1bf12c82 refactor: swap go-ps for gopsutil 2020-10-23 19:44:10 +02:00
Nathan Wykes 9ccf376d61 feat: add wsl capability to os segment 2020-10-22 07:23:47 +02:00
Travis Illig 5844faa54d feat: dotnet segment for .NET SDK display
New segment for .NET SDK version (or unsupported version) display.

Includes update for handling command execution errors so segments
can act differently based on exit codes. Using a custom error
type to make it testable rather than passing the OS error directly
to the segment.
2020-10-16 11:39:01 -07:00
Jan De Dobbeleer 56468baf4c fix: remove user.current()
relates to #55
2020-10-12 16:09:06 +02:00
Jan De Dobbeleer 56f4bcfd86 refactor: user env for user name
relates to #55
2020-10-12 13:25:27 +02:00
Jan De Dobbeleer 1ef25757d7 refactor: cache cwd 2020-10-12 13:25:27 +02:00
Jan De Dobbeleer 07c985a680 refactor: show remote gone icon 2020-10-10 21:17:42 +02:00
Jan De Dobbeleer 3193487234 fix: improve star theme
relates to #45
2020-10-09 16:23:07 +02:00
Jan De Dobbeleer 8978038a3c fix: use PWD for current dir
On Windows, when in the registry, os.Getwd() returns the previous
path rather than the registry location. Settings PWD as an environment
variable might seem hacky but it's the only way to resolve this.

Resolves #40
2020-10-09 08:25:06 +02:00
Jan De Dobbeleer 9f23514268 feat: rebase support 2020-10-07 19:00:23 +02:00
nwykes dabc9d4f20 feat: session segment updates
only display UserInfoSeparator if both username and hostname are dislayed
cleanHostName only if it ends with garbage instead of contains.
  fixes .localdomain having just .local stripped
add .localdomain to garbage
2020-10-07 17:52:25 +02:00
Jan De Dobbeleer 66941ddb43 fix: correct cross platform home location
resolves #24
2020-10-05 17:19:05 +02:00
Jan De Dobbeleer 758afdd83e feat: node segment 2020-10-05 17:19:05 +02:00
Jan De Dobbeleer 6c17689966 refactor: format shell name better 2020-09-24 19:34:19 +02:00
Jan De Dobbeleer 5c4af19d90 feat: add shell info segment 2020-09-16 10:46:50 +02:00
Jan De Dobbeleer c4d1c75781 feat: initial commit 2020-09-12 08:57:18 +02:00