Commit Graph

541 Commits

Author SHA1 Message Date
Ilan Cosman
d11073a20a Move _tide_left_prompt and _tide_right_prompt into _tide_prompt 2021-05-04 09:29:34 -07:00
Ilan Cosman
bbee4139d0 Remove icon responsibilty from _tide_print_item 2021-05-04 08:47:32 -07:00
Ilan Cosman
6d2e90ab9f Make newline an item 2021-04-29 09:36:18 -07:00
Ilan Cosman
7756f1ae16 minor edits 2021-04-26 13:47:15 -07:00
Ilan Cosman
68c028eea6 minor edits 2021-04-26 13:27:02 -07:00
Ilan Cosman
ae86638d6e more fixing color printing bug 2021-04-26 12:02:16 -07:00
Ilan Cosman
4fd53f8a73 fix color printing bug 2021-04-26 11:56:12 -07:00
Ilan Cosman
b8401770dc Switch rust to rustc better 2021-04-24 18:14:30 -07:00
Ilan Cosman
322dd13caa Rename rust to rustc 2021-04-24 18:01:02 -07:00
Ilan Cosman
2e62215c04 Fix chruby item bug 2021-04-24 17:57:16 -07:00
Ilan Cosman
97ada49838 Add tide_prompt variables 2021-04-24 17:46:58 -07:00
Ilan Cosman
dfe5bb8618 Rename prompt_char to character 2021-04-24 17:42:12 -07:00
Ilan Cosman
bf990577ed More work on v5 2021-04-24 17:40:43 -07:00
Ilan Cosman
889c25972d Fix pwd bugs 2021-04-24 14:30:03 -07:00
Ilan Cosman
5592e225c9 Convert many items to _tide_print_item 2021-04-23 14:41:11 -07:00
Ilan Cosman
8f506f9f0d Add _tide_print_item function 2021-04-23 13:58:28 -07:00
Ilan Cosman
630ae9f7d9 v4.3.4 2021-04-14 14:42:25 -07:00
Ilan Cosman
735023d3d3 Fix git item in bare repos (fixes #145) 2021-04-13 21:51:14 -07:00
Ilan Cosman
29a7de545f Fix git item in .git dir 2021-04-13 21:19:59 -07:00
Ilan Cosman
9e7eaac85d Ask for info in bug-report 2021-04-12 17:35:35 -07:00
Ilan Cosman
6ee4796758 Check for omf in bug-report 2021-04-12 16:48:01 -07:00
Ilan Cosman
9e3221ce48 v4.3.3 2021-04-11 09:43:11 -07:00
Ilan Cosman
d72af19940 Go back to using fish_prompt function instead of handler
fixes #126
fixes #139
2021-04-10 08:56:38 -07:00
Ilan Cosman
e98a412bad Minor startup speed improvement 2021-04-10 08:46:10 -07:00
Ilan Cosman
c7d9679b28 Detect os on install only 2021-04-04 20:20:26 -07:00
Ilan Cosman
8e1dbc1870 Add --no-optional-locks to background git status 2021-04-04 20:04:09 -07:00
Ilan Cosman
85d1741f40 Only use gitDir for status if necessary (fixes #138) 2021-04-04 18:28:04 -07:00
Ilan Cosman
52be745319 give feedback when checking versions 2021-03-30 15:29:21 -07:00
Ilan Cosman
1eca002e73 Update bug-report template 2021-03-30 14:01:51 -07:00
Ilan Cosman
0d306fe85b Make tide bug-report check that Tide and Fish are up to date 2021-03-30 13:53:41 -07:00
Ilan Cosman
67f1ce4480 Put stash before git status info 2021-03-27 09:16:22 -07:00
Ilan Cosman
21d57439dd Always fetch git status, even in .git dir 2021-03-27 09:07:44 -07:00
Ilan Cosman
d2ba4b45fe v4.3.2 2021-03-26 11:38:05 -07:00
Ilan Cosman
4bbf541281 Use $status instead of $pipestatus[-1] to account for not 2021-03-26 07:33:52 -07:00
Ilan Cosman
781fab9904 Fix git staged/dirty counters 2021-03-25 21:28:58 -07:00
Ilan Cosman
22683c674f Don't set a length for git SHA 2021-03-25 16:59:13 -07:00
Ilan Cosman
3c58061603 Don't set prompt_char background color in classic mode 2021-03-25 09:59:17 -07:00
Ilan Cosman
7f015294c2 v4.3.1 2021-03-24 22:03:42 -07:00
Ilan Cosman
825f639fce v4.3.0 2021-03-22 10:23:46 -07:00
Ilan Cosman
c6a1ad45c7 Retool _tide_detect_os_linux_cases and add new distros 2021-03-21 22:25:50 -07:00
Ilan Cosman
6ce2e4a632 Just use display_var variables, not fish_pid 2021-03-21 21:39:14 -07:00
Ilan Cosman
1cc1b83037 Use redirections instead of cat 2021-03-20 18:03:07 -07:00
Ilan Cosman
c5d7640415 Simplify removing unusable items 2021-03-17 22:23:01 -07:00
Ilan Cosman
9e7f04d82e Remove unusable tool items on startup (fixes #129) 2021-03-17 14:30:04 -07:00
Ilan Cosman
4a00b7fe79 Always add space after prompt 2021-03-17 11:39:03 -07:00
Ilan Cosman
44290e4360 Fix multi-line prompt when no items on second line 2021-03-17 09:49:05 -07:00
Ilan Cosman
98c895bfeb Run set_color normal in _tide_prompt 2021-03-16 09:50:49 -07:00
Ilan Cosman
9e37766508 Minor refactor of pwd 2021-03-16 09:05:34 -07:00
Ilan Cosman
02adc2f08a Fix bug when truncating single character directories 2021-03-16 09:03:19 -07:00
Ilan Cosman
8dcdc64296 Use fish_prompt event, reorganize 2021-03-14 13:59:32 -07:00
Ilan Cosman
1129394f79 Kill old process in main fish instance 2021-03-14 09:48:17 -07:00
Ilan Cosman
be6b2722ff Minor edits 2021-03-13 19:20:33 -08:00
Ilan Cosman
acf89909f6 Use string tests instead of numbers, slight speed improvement 2021-03-13 17:19:32 -08:00
Mitch
d2e672165e
Check for negative value when printing prompt connection (#121)
* Check for negative value when printing prompt connection

* minor refactor

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2021-03-10 19:41:24 +00:00
Ilan Cosman
a66ccd61c5 Revert "Don't even create fish_mode_prompt function" (fixes #119) 2021-03-09 11:58:36 -08:00
Ilan Cosman
aaff21d5a8 Make bug-report better 2021-03-08 11:07:47 -08:00
Ilan Cosman
e954a609ac Make status item smarter, remove tide_status_always_display 2021-03-07 21:43:39 -08:00
Ilan Cosman
a55612d38f Remove tide_rust_verbose_version and updates rust item test 2021-03-07 21:34:22 -08:00
Ilan Cosman
75e66b74b9 Don't print rust version if there are rust files 2021-03-07 21:30:26 -08:00
Ilan Cosman
7b61e865c7 Anchor first and last directories, remove tide_pwd_anchors 2021-03-07 10:09:58 -08:00
Ilan Cosman
d41e20959d Fix pwd markers 2021-03-06 11:58:49 -08:00
Ilan Cosman
8db9d18e7e Remove _tide_cursor_up and _tide_cursor_right 2021-03-05 17:50:30 -08:00
Ilan Cosman
e29efc022d Use fake_columns instead of real columns for wizard 2021-03-05 17:49:53 -08:00
Ilan Cosman
a8b08571d8 Update fake prompt for new printing method 2021-03-05 17:43:08 -08:00
Ilan Cosman
f3e704e5cf v4.2.0 2021-03-04 11:54:46 -08:00
Ilan Cosman
f48828136a More refactoring of print logic 2021-03-04 11:06:17 -08:00
Ilan Cosman
1425585e33 Refactor printing (fixes #111) 2021-03-04 11:05:49 -08:00
Ilan Cosman
b3a7db5b53 Update for Fish v3.2 2021-03-02 09:52:58 -08:00
Ilan Cosman
05af630a82 Run new fish_indent on code 2021-03-02 09:46:40 -08:00
Ilan Cosman
2a888b96b4 Don't even create fish_mode_prompt function 2021-02-28 18:36:37 -08:00
Ilan Cosman
fe924616e1 Refactor fish_prompt.fish 2021-02-28 16:47:07 -08:00
Ilan Cosman
aa50156af9 Make virtual_env item smarter (closes #97) 2021-02-28 15:37:19 -08:00
Piotr Usewicz
4f621eae3f
Add chruby item (#100)
* Add ruby item

* Rename chruby test

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2021-02-28 08:52:11 -08:00
Christian Volkmann
953203adcf
Load fish_prompt only if session is interactive (#107)
* fix(fish_prompt): Only refresh when session is interactive

* fix: Define empty refresh prompt when non-interactive

* fix: Define empty fish_prompt when non-interactive

* style: Indent

* refactor(fish_prompt): Wrap whole file in if statement

* style: New line
2021-02-26 06:47:24 -08:00
Ilan Cosman
2b516dc02b Use builtin disown 2021-02-26 03:37:07 -08:00
Ilan Cosman
d0fa97f0fa Add php item (#91) 2021-02-25 14:14:43 -08:00
Ilan Cosman
1fa79ab005 v4.1.1 2021-02-22 14:37:43 -08:00
Ilan Cosman
2620cb349a Support toor and Administrator in context item 2021-02-22 14:23:52 -08:00
Ilan Cosman
8d95cec0cb Add cmd_duration and context to generalItems list 2021-02-21 13:29:00 -08:00
Ilan Cosman
b872e7697b v4.1.0 2021-02-20 14:14:50 -08:00
Ilan Cosman
3fe936027c Minor edits 2021-02-16 20:59:30 -08:00
Ilan Cosman
aa77b86905 Update things for new removal system 2021-02-16 20:46:48 -08:00
Ilan Cosman
e85b733fef Remove tool-specific items if the user doesn't have them installed 2021-02-16 20:40:07 -08:00
Ilan Cosman
bc4e51a9a0 Update variable printing for bug-report 2021-02-11 11:08:36 -08:00
Ilan Cosman
5091eb60ca Don't error if in .git directory of git repo 2021-02-09 15:54:01 -08:00
Ilan Cosman
763cec1a80 Don't error if os file doesn't exist (fixes #24 again) 2021-02-07 16:16:43 -08:00
Ilan Cosman
c94a78e6c4 Don't validate bg colors, minor edits to left/right prompt 2021-02-07 14:44:19 -08:00
Ilan Cosman
edcc4f0e74 Minor edits to detect_os 2021-02-06 08:18:43 -08:00
Ilan Cosman
94c13536da Minor edits to PWD 2021-02-04 15:36:54 -08:00
Ilan Cosman
7263bc5b6b Avoid parsing directories as flags (fixes #88) 2021-02-04 15:19:16 -08:00
Ilan Cosman
0c5ecf6445 Add bug-report --clean 2021-02-03 12:57:13 -08:00
Ilan Cosman
6650040158 v4.0.0 2021-02-03 10:21:55 -08:00
Ilan Cosman
8aedd1ddf7 Print git info in a nicer way 2021-02-03 10:06:26 -08:00
Ilan Cosman
5e5ce26893 Use cyan instead of blue for 16 color pwd 2021-02-03 09:41:30 -08:00
Ilan Cosman
baee8f539e Set fish_term24bit in background job, don't export it 2021-02-02 19:51:52 -08:00
Ilan Cosman
894a4a4998 Don't rerun background function while repainting 2021-02-02 08:12:01 -08:00
Ilan Cosman
830dc6290d Bring back fish_term24bit, fix color bug 2021-01-28 21:09:28 -08:00
Ilan Cosman
2c80b32437 Add vi_mode_insert_color to class/lean 16 color configs 2021-01-27 09:35:38 -08:00
Ilan Cosman
bc2bddf2dc Fix tide configure on install bug 2021-01-27 09:34:23 -08:00
Ilan Cosman
383d6842ec Add rainbow_16color config 2021-01-27 09:29:15 -08:00
Ilan Cosman
24f28759be Dont show prompt connectionc color menu when using 16 color 2021-01-26 16:08:22 -08:00
Ilan Cosman
ecf6f786b4 Add lean_16color config 2021-01-26 16:06:47 -08:00
Ilan Cosman
1bcd41d026 Remove _tide_true_color in favor of full configs for each style 2021-01-26 16:04:20 -08:00
Ilan Cosman
21d31bb8a9 Move tests directory into root of repository 2021-01-26 15:45:00 -08:00
Ilan Cosman
972346fd7e Use --quiet instead of 2>/dev/null 2021-01-26 12:21:11 -08:00
Ilan Cosman
2a93f4cca5 Remove seq, should fix macOS root dir bug 2021-01-25 21:48:34 -08:00
Ilan Cosman
34d19fbb58 Switch to littlecheck 2021-01-25 17:34:15 -08:00
Ilan Cosman
39e1bd1e83 Remove tide test 2021-01-25 11:22:28 -08:00
Ilan Cosman
13f03a47a7 Remove CI specific tests 2021-01-25 11:01:44 -08:00
Ilan Cosman
78f3b840c0 Add classic_16color config 2021-01-25 09:08:20 -08:00
Ilan Cosman
b5cfffb342 Refactor pwd item a bit 2021-01-25 07:31:21 -08:00
Ilan Cosman
09a610d08c Simplify variable handling 2021-01-25 07:13:06 -08:00
Ilan Cosman
2d2c6a577d Minor edits 2021-01-25 06:51:46 -08:00
Ilan Cosman
12da651992 Fix git error when in repository with no commits 2021-01-24 14:44:05 -08:00
Ilan Cosman
8b5a815cb8 Fix 16 colors for classic 2021-01-24 09:42:46 -08:00
Ilan Cosman
0ef06d1b72 Add prompt colors menu 2021-01-24 09:12:30 -08:00
Ilan Cosman
ca11b789ef Add tide_true_color 2021-01-22 20:44:57 -08:00
Ilan Cosman
3bc8f52d58 Fix quit bug in wizard 2021-01-22 17:28:48 -08:00
Ilan Cosman
baa87d77b4 Fix errors in rainbow config 2021-01-22 17:02:55 -08:00
Ilan Cosman
443a3ddf7a Unify prompt connection menus 2021-01-22 16:35:14 -08:00
Ilan Cosman
bad52f9dbb Simplify menus code 2021-01-22 16:31:31 -08:00
Ilan Cosman
8554ab3145 Remove tide test install flag 2021-01-22 16:09:36 -08:00
Ilan Cosman
b7fcafbe85 Merge main into v4 2021-01-22 15:52:00 -08:00
Ilan Cosman
b7980bf4b8 Remove remnants of git_prompt 2021-01-21 16:52:02 -08:00
Ilan Cosman
36a4ede37e Update configs for new git 2021-01-21 16:48:13 -08:00
Ilan Cosman
189cf1c967 Minor edits 2021-01-20 14:04:02 -08:00
Ilan Cosman
67f19640e0 Fix pwd when in root dir (fixes #80) 2021-01-20 12:29:42 -08:00
Ilan Cosman
e93f86267d Remove pure style 2021-01-19 16:09:16 -08:00
Ilan Cosman
8752bb5ce1 Remove defunct git stuff 2021-01-17 11:33:05 -08:00
Ilan Cosman
3a85689517 Remove _tide_git_prompt_set_vars 2021-01-17 11:23:58 -08:00
Ilan Cosman
934526beb6 Add git item, fix basic things 2021-01-17 11:22:02 -08:00
Ilan Cosman
455a2f759c Merge git_prompt repo 2021-01-17 11:17:29 -08:00
Ilan Cosman
328b12186e Minor edits 2021-01-16 17:17:18 -08:00
Ilan Cosman
72a28d0485 Rename unmerged to conflicted 2021-01-16 17:14:21 -08:00
Ilan Cosman
170df9bf14 Add colors 2021-01-16 16:50:50 -08:00
Ilan Cosman
aa55231eae Add operations 2021-01-16 15:15:33 -08:00
Ilan Cosman
defc649b43 Add unmerged 2021-01-16 14:39:10 -08:00
Ilan Cosman
139545f976 Calculate staged vs dirty 2021-01-16 13:06:14 -08:00
Ilan Cosman
8d1c92d9b0 Rename variables 2021-01-16 10:40:00 -08:00
Ilan Cosman
be8720536f Add stash count 2021-01-16 10:23:30 -08:00
Ilan Cosman
0632655297 Add upstream ahead/behind 2021-01-16 10:11:47 -08:00
Ilan Cosman
bdc1a6448f Initial commit 2021-01-16 09:49:48 -08:00
Ilan Cosman
f3b4e6aa98 Remove git from tide_pwd_anchors, left there by mistake 2021-01-15 20:13:28 -08:00
Ilan Cosman
18c687b2d6 Simplify pwd item, remove pwd_max_dirs 2021-01-15 20:08:33 -08:00
Ilan Cosman
306a918dd9 Fix spaces in pwd bug (fixes #74) 2021-01-15 17:33:49 -08:00
Ilan Cosman
e0aca078fb Replace @mesg with @echo 2021-01-12 20:12:55 -08:00
Jorge Bucaran
bee67c6c4a
Use Fishtape instead of Spout (#70)
* Use Fishtape

* Capitalize

* Don't capitalize link

* Don't invalidate rust test
2021-01-12 19:58:48 -08:00
Ilan Cosman
bd44ff6206 v3.2.0 2021-01-12 16:03:31 -08:00
Ilan Cosman
010ff2ddea Merge pwd 2021-01-12 15:52:29 -08:00
Ilan Cosman
d6a2271cd3 Fix color bug in pwd 2021-01-11 16:23:35 -08:00
Ilan Cosman
9ceba3d423 Don't error if file doesn't have the specified key 2021-01-10 09:10:04 -08:00
Ilan Cosman
e555aad9e0 New pwd logic with markers 2021-01-10 08:56:46 -08:00
Ilan Cosman
4129099cd2 Ensure prompt variables are erased after uninstall (fixes #69) 2021-01-05 18:07:56 -08:00
Ilan Cosman
aa40c45862 Update async gif 2021-01-04 15:16:47 -08:00
Ilan Cosman
46035b236c Close stdout in background process 2021-01-03 16:09:08 -08:00
Ilan Cosman
00a3fc3365 Fix shortening one letter directories (fixes #67) 2021-01-03 08:32:22 -08:00
Ilan Cosman
302bfe1747 Fix _tide_decolor for linux and tmux TERMs (fixes #66) 2021-01-02 20:16:03 -08:00
Ilan Cosman
7f55deaf8e v3.1.0 2020-12-31 21:21:10 -08:00
Varun Madiath
95b0d7802b
Allow for installation into non-standard locations (#65)
* Allow for installation into non-standard locations

This is useful when installed via fisher, if the user has set up
$fisher_path to be something other than ~/.config/fish

* Use simpler regex

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2020-12-31 21:07:13 -08:00
Peng Guanwen
fb22b3bec9
Set color to normal at end of prompt (#63)
* Set color to normal at end of prompt char

* move `set_color normal` to _tide_prompt
2020-12-31 20:14:55 -08:00
Ilan Cosman
1bcfe317e4 Fix minor bug after completing configuration wizard 2020-12-28 13:56:55 -08:00
Ilan Cosman
0a33c9cc0b Minor edits to finish function 2020-12-28 09:52:08 -08:00
Ilan Cosman
5e2d749cb6 Revert Keep choice prompt on one line always 2020-12-28 09:26:30 -08:00
Ilan Cosman
61f1795a54 Update configuration wizard left and right prompts 2020-12-28 08:06:50 -08:00
Ilan Cosman
1c663db346 Minor edits to configuration wizard 2020-12-28 07:42:00 -08:00
Ilan Cosman
f48c21733c Fix menu bug 2020-12-27 21:46:22 -08:00
Ilan Cosman
d371313635 Keep choice prompt on one line always 2020-12-27 21:17:34 -08:00
Ilan Cosman
d60b593e6f Simplify configuration menus 2020-12-27 21:12:30 -08:00
Ilan Cosman
09b042acc5 Minor edits 2020-12-26 08:42:21 -08:00
Ilan Cosman
f0ca701538 Replace _tide_last_status with _tide_last_pipestatus[-1] 2020-12-25 16:54:24 -08:00
Ilan Cosman
bf0d7a76b7 Minor edits 2020-12-25 16:32:03 -08:00
Ilan Cosman
a773f703cf Also refresh prompt on right prompt var change (fixes #59) 2020-12-23 14:15:36 -08:00
Ilan Cosman
b4aa00ac43 Remove _tide_on_fish_cancel 2020-12-23 11:04:39 -08:00
Ilan Cosman
d1b2806977 v3.0.0 2020-12-22 19:58:44 -08:00
Ilan Cosman
33e56fb899 Replace basename with pure fish 2020-12-17 21:12:54 -08:00
Ilan Cosman
aaf4386dc7 Simplify nvm item, everyone is using nvm current now 2020-12-17 20:53:47 -08:00
Ilan Cosman
c577cbee9d Change repaint to force-repaint, fixes vi mode 2020-12-17 15:31:52 -08:00
Ilan Cosman
6ab2fc103c Accurately redraw the prompt when the line is cancelled (fixes #53) 2020-12-13 09:32:20 -08:00
Ilan Cosman
730a65f26c Bring back classic_prompt_separators 2020-12-10 09:04:59 -08:00
Ilan Cosman
f541c22ed8 Minor performance improvement 2020-12-07 15:15:29 -08:00
Ilan Cosman
2dc7a976c5 Unify configuration show_time menus 2020-12-01 16:10:31 -08:00
Ilan Cosman
fe87411239 Group powerline choices together 2020-11-28 12:19:58 -08:00
Ilan Cosman
6a3ae454ec Erase async vars after exiting wizard 2020-11-28 11:43:44 -08:00
Ilan Cosman
3f6945b148 Print left prompt suffix when only one line 2020-11-28 11:26:57 -08:00
Ilan Cosman
3874f285a2 Make version number not a universal variable 2020-11-27 09:55:45 -08:00
Ilan Cosman
1f51788879 Set fish_term24bit, fixes git color issues 2020-11-27 08:12:14 -08:00
Ilan Cosman
fa8fad2faa Update jobs test 2020-11-26 18:19:34 -08:00
Ilan Cosman
282b947d13 SSH_TTY is automatically exported 2020-11-26 13:29:30 -08:00
Ilan Cosman
895d617409 Fix vi-related items 2020-11-25 11:57:45 -08:00
Ilan Cosman
7b25cc7b4c Fix jobs item 2020-11-25 11:54:17 -08:00
Ilan Cosman
7747a257a3 Fix bugs/performance improvements 2020-11-25 09:41:40 -08:00
Ilan Cosman
f6262a2e28 Set variables in background job 2020-11-25 09:22:35 -08:00
Ilan Cosman
85712feeaa Disown async job 2020-11-24 22:24:49 -08:00
Ilan Cosman
dc18cfced2 Kill old async processes 2020-11-24 22:13:05 -08:00
Ilan Cosman
f49f6dff4b Minor edits 2020-11-24 20:54:49 -08:00
Ilan Cosman
0927a23d3e Bring back set_color normal to fix bug 2020-11-24 20:44:42 -08:00
Ilan Cosman
276660bf2b Simplify _tide_right_prompt 2020-11-24 20:41:24 -08:00
Ilan Cosman
6015512d8e Fix right prompt bug 2020-11-24 20:22:21 -08:00
Ilan Cosman
0122bdc62b Simplify _tide_left_prompt 2020-11-24 20:20:39 -08:00
Ilan Cosman
09784a9a02 Prevent seperate fish instances from interfering with each other 2020-11-24 19:30:59 -08:00