Jan De Dobbeleer
39dfca93c6
fix(migrate): correctly migrate exit segment
2022-02-20 16:13:00 +01:00
Jan De Dobbeleer
dec5691435
feat: secondary prompt
2022-02-20 14:01:04 +01:00
Jan De Dobbeleer
cb70ed4b41
feat(pwsh): support PromptText
2022-02-19 19:23:56 +01:00
Jan De Dobbeleer
3d4fc5b6dd
chore: remove typo
...
resolves #1787
2022-02-19 19:23:56 +01:00
Jan De Dobbeleer
e62482c56f
fix(cmd): return empty on error
...
resolves #1783
2022-02-19 14:39:26 +01:00
Jan De Dobbeleer
8c8f3e411d
refactor: use pointers to segment color
2022-02-19 14:39:26 +01:00
Jan De Dobbeleer
3efb979053
fix(az): fetch path from AZURE_CONFIG_DIR
...
resolves #1775
2022-02-18 19:56:16 +01:00
Jacek W
b10b8dc2f0
feat: cloud foundry segment
2022-02-17 12:58:20 +01:00
Jan De Dobbeleer
b4eadff3b6
fix(wsl): split distro name from version
...
resolves #1766
2022-02-17 12:54:44 +01:00
Jan De Dobbeleer
cc1da3f0ea
fix: migrate color_background correctly
...
resolves #1771
2022-02-17 12:54:44 +01:00
Jacek W
b47e057f14
feat: UI5 tooling segment
2022-02-14 07:41:33 +00:00
Jan De Dobbeleer
91ebe662bf
fix(zsh): do not provide PWD
...
resolves #1605
2022-02-13 18:59:33 +01:00
Jan De Dobbeleer
a0d4fc6cba
feat: colorise filler
2022-02-12 18:48:08 +01:00
Jan De Dobbeleer
d3d370309f
fix: strip ANSI from text before measure
...
resolves #1744
2022-02-11 20:55:14 +01:00
Jan De Dobbeleer
0a15720c74
chore(go): update dependencies
2022-02-10 20:02:23 +01:00
Jan De Dobbeleer
57d481c9b4
fix: parse error text when silent fail
...
resolves #1739
2022-02-10 19:48:08 +01:00
Jan De Dobbeleer
f6232deaf8
fix: only disable battery in WSL1
...
resolves #1736
2022-02-09 17:51:09 +01:00
Jan De Dobbeleer
b3d9981eec
feat(terraform): add version information
...
resolves #1455
2022-02-09 14:39:50 +01:00
Zhizhen He
0b85aba8d8
fix: fix typo and remove redundant parentheses
2022-02-09 12:19:15 +01:00
Jan De Dobbeleer
d1bd686674
feat(path): unique letters style
...
resolves #1663
2022-02-09 10:46:15 +01:00
Jan De Dobbeleer
c7a446c081
fix(windows): safer logic for parsing app exec links
2022-02-08 20:23:57 +01:00
JedWillick
2046dcefeb
feat(haskell): add haskell segment
2022-02-08 19:56:30 +01:00
Jan De Dobbeleer
1e797acf77
feat(windows): support store app CLI tools
...
resolves #1703
2022-02-07 19:01:38 +01:00
lnu
632e495141
fix(battery): disable for WSL
...
charge_full_design and charge_full does not exists in WSL
2022-02-07 14:51:47 +01:00
Jan De Dobbeleer
8ce47273df
feat(cache): only write when dirty
2022-02-06 14:10:41 +01:00
Jan De Dobbeleer
7a60418297
feat(sysinfo): add disks
...
resolves #1710
2022-02-06 14:10:41 +01:00
Jan De Dobbeleer
4c4b97fa8b
fix: provide terminal width from CLI
2022-02-06 11:04:36 +01:00
Jan De Dobbeleer
8f3bfd674b
fix(manjaro): read lsb-release
...
relates to #1696
2022-02-06 11:04:36 +01:00
lnu
5daff6b934
fix: hyperlink regex updated
...
Issue when detecting and replacing text
2022-02-06 09:49:36 +01:00
Jan De Dobbeleer
c34ea9c8f5
fix: exclude link on measure
...
resolves #1691
2022-02-05 21:41:33 +01:00
Jan De Dobbeleer
d94a0db0a9
feat(os): support manjaro linux
...
resolves #1696
2022-02-05 20:37:48 +01:00
Jan De Dobbeleer
06291e168b
fix(migrate): replace .Text with .Meaning
...
resolves #1697
2022-02-05 09:44:47 +01:00
Jan De Dobbeleer
35aead22fc
fix(tooltip): set segment to active
...
resolves #1701
2022-02-05 09:44:47 +01:00
Jan De Dobbeleer
216541a4f8
refactor(image): count runes in string
2022-02-04 19:42:26 +01:00
Jan De Dobbeleer
aba4093aba
feat: filler between blocks
2022-02-04 19:42:26 +01:00
Jan De Dobbeleer
04e6579a8e
refactor: count length using written text
2022-02-04 19:42:26 +01:00
Chris Donnelly
06e08074fe
fix(git): detect when upstream no longer exists
...
Currently the git segment does not detect when an upstream is removed
(e.g., a PR is merged and the remote branch is deleted).
This change adds functionality to detect when upstream is removed;
if the status reports "branch.upstream" but no "branch.ab", it is gone.
The UI has also been changed to reflect this third state;
it now matches posh-git's behavior, which only shows the Gone icon
if an upstream branch is set but does not report ahead/behind counts.
2022-02-04 19:14:27 +01:00
Jan De Dobbeleer
7dab387a11
fix: migrate console title template
...
relates to #1678
2022-02-04 09:13:04 +01:00
Jan De Dobbeleer
fddee51f70
fix: restore default config
2022-02-03 21:21:10 +01:00
Jan De Dobbeleer
e1a7f4e954
fix: populate temp cache before assignment
...
resolves #1673
2022-02-03 17:49:28 +01:00
Jan De Dobbeleer
696bdda00a
feat: support laravel in php
...
resolves #1171
2022-02-03 12:01:59 +01:00
Jan De Dobbeleer
08f7a6a17e
feat: support vue.js in node
...
resolves #1171
2022-02-03 12:01:59 +01:00
Jan De Dobbeleer
e545b32896
fix: add platform to OS on linux
...
resolves #1639
2022-02-03 12:01:59 +01:00
Jan De Dobbeleer
b29ebcd058
chore: provide info for migrated config
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
a9d32a86d4
chore: rename migrations -> migrate
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0621d0d97a
chore: backup original config
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
6b6aec43d5
fix: migrate text correctly
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
a091e5c387
fix: migrate exit segment correctly
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
42f9747558
fix: do not insert color override in existing template
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
566240c0ed
fix: do not escape emoji
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
bfca351796
chore: do not auto migrate on manual switch
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
6fcae4207e
chore(migrate): backup config on migration
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0185299263
feat(config): auto migrate to 1
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
a5162b0f19
refactor(segment): cleaner logic
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
55ab413d6e
fix: do not render empty/whitespace segments
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
01bd42b3eb
fix(config): export glyphs correctly escaped
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
83980a3dff
feat: deprecate pre- and postfix
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
b4292e2e50
docs: add template information
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0373d2c507
feat(config): migrate deprecated keys
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0e056cd50d
feat(template): hyperlink functions
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
e95e0d6b1b
fix(engine): allow template override
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
c94e5e6efb
chore(template): add tests for roundSeconds
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
eef50268a9
refactor(template): rename files
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
fee29f4b2e
refactor: move engine to module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
c0f4b6d6f0
refactor: move title to module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
9e7abe4541
refactor: move segments to module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
4e17e4a853
refactor: public interface for segments
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
59756813d3
refactor: naming standard for segments
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
bdd13cb32f
refactor: move properties logic to module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
c86b7b62bc
refactor: move color logic to module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
906ece2af9
refactor: move environment into it's own module
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
f7a07c6b62
refactor(segments): string() to template()
...
moves templating engine to Segment
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
0987cafad0
refactor: remove deprecated functionality
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
f5178e8c8c
feat: remove enable_hyperlink
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
b816a0bf70
feat: templates for all segments
2022-02-03 10:44:18 +01:00
Jan De Dobbeleer
d75f6e30aa
fix: use debug for logging pwd
2022-01-20 14:33:23 +01:00
Jan De Dobbeleer
fc456da107
refactor: rename getcwd to pwd
2022-01-20 14:22:29 +01:00
Jan De Dobbeleer
6afa7711b2
feat: log directories on debug
...
relates to #1605
2022-01-20 14:22:29 +01:00
Jan De Dobbeleer
8fca218a7d
feat(build): static build
2022-01-19 19:46:52 +01:00
Michael Guntsche
de60367d79
fix(env): remove defer on platform
...
This is a small fix to actually store the value. Arguments to defers are apparently
evaluated immediately so put it in an anonymous function.
2022-01-19 07:43:08 +01:00
Jan De Dobbeleer
ad297dbe08
fix: init cache first
2022-01-18 21:29:05 +01:00
Jan De Dobbeleer
0a09924685
fix(platform): store value in cache
...
resolves #1601
2022-01-18 21:08:26 +01:00
Jan De Dobbeleer
3cca2104bb
feat(cache): allow for non-expiring values
2022-01-18 21:08:26 +01:00
Jan De Dobbeleer
e5dd07fb9a
feat: cache template environment data
2022-01-18 20:14:47 +01:00
Jan De Dobbeleer
9e77d0f939
fix(template): support surrounding variables with braces
2022-01-18 20:14:47 +01:00
Jan De Dobbeleer
e6d4413ae7
feat: adjust var names for consistency
...
BREAKING CHANGE: adjusts the way some segment work for templates.
Mapping the var names as following will resolve the issue.
- session/title/general purpose
- .Host -> .HostName
- .User -> .UserName
- az
- .UserName -> .Name
- kubectl
- .UserName -> .User
2022-01-17 16:29:39 +01:00
lnu
115759f4d3
feat(debug): cache path added to debug
2022-01-16 21:21:00 +01:00
Jan De Dobbeleer
a56b90005f
fix(os): lowercase OS name
...
resolves #1593
2022-01-16 20:06:38 +01:00
Jan De Dobbeleer
221f28afdd
feat(cli): print cache path
2022-01-16 18:22:40 +01:00
Jan De Dobbeleer
0332fbfebb
fix: create environ cache on init
2022-01-15 23:25:49 +01:00
Jan De Dobbeleer
dc50bd3546
fix(env): init environ cache
2022-01-15 23:08:47 +01:00
Jan De Dobbeleer
a200ee73ff
feat: add OS to template functionality
2022-01-15 21:38:06 +01:00
Jan De Dobbeleer
0404976b5c
refactor: remove the need for nil argument in mock
2022-01-15 21:38:06 +01:00
Jan De Dobbeleer
d71422a35b
feat(git): add remote URL for hyperlink
2022-01-14 22:50:24 +01:00
Jan De Dobbeleer
2ea2e633b8
fix(az): map User to UserName
...
avoid collision with default .User in template
2022-01-14 08:51:53 +01:00
Jan De Dobbeleer
f1e21949bc
fix(cygwin): do not clean config path
2022-01-14 08:42:52 +01:00
Jan De Dobbeleer
4542e92940
fix(az): proper path fix
2022-01-13 22:39:45 +01:00
Jan De Dobbeleer
d45c51cccc
feat(az): display info origin
...
resolves #1562
2022-01-13 20:32:32 +01:00
Jan De Dobbeleer
b1c427abaa
fix(az): use platform specific folder
...
resolves #1567
2022-01-13 20:32:32 +01:00
Jan De Dobbeleer
f512df208a
feat: expose environment info to all templates
2022-01-13 20:15:04 +01:00