Commit Graph

417 Commits

Author SHA1 Message Date
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
Ilan Cosman
c794140008 Clear prompt before printing 2020-11-24 16:39:25 -08:00
Ilan Cosman
d4bc14578b Slim down tide test help message 2020-11-24 14:44:46 -08:00
Ilan Cosman
5ec4a8bf4c Convert simple if statements to && and || 2020-11-24 14:39:56 -08:00
Ilan Cosman
7418055eb5 Minor edits 2020-11-24 14:30:45 -08:00
Ilan Cosman
1d4861deb8 Fix status bug 2020-11-24 14:24:36 -08:00
Ilan Cosman
c98fc8646c Fix various issues 2020-11-24 14:21:22 -08:00
Ilan Cosman
3f7ed96687 Fix tests 2020-11-24 12:59:30 -08:00
Ilan Cosman
41644062c4 Use status is-interactive instead of own variable 2020-11-24 12:43:48 -08:00
Ilan Cosman
5bd71efa45 More work on async 2020-11-23 14:56:52 -08:00
Ilan Cosman
829f886a47 Start work on async 2020-11-20 14:04:04 -08:00
Ilan Cosman
81726dce16 Simplify tide help message code 2020-11-20 13:51:18 -08:00
Ilan Cosman
b3990ad241 Set _tide_fish_right_prompt_display to truly empty (fixes #48) 2020-11-20 08:32:12 -08:00
Ilan Cosman
b1fd36a348 Add _find_and_remove function 2020-11-19 16:23:54 -08:00
Ilan Cosman
dce2c2364c Add icons menu 2020-11-19 16:12:13 -08:00
Ilan Cosman
2d12f7c8c8 Add tide_cmd_duration_icon 2020-11-19 15:58:49 -08:00
Ilan Cosman
1d78c51982 Add virtual_env item to pure style (fixes #46) 2020-11-12 07:26:06 -08:00
Jorge Bucaran
92a345916b
Move fish_right_prompt to fish_right_prompt.fish (#45)
* Remove fish_right_prompt from wrong file

* Create fish_right_prompt.fish
2020-11-11 08:46:28 -08:00
Ilan Cosman
207ddcf772 Switch to fisher 2020-11-04 11:05:41 -08:00
Ilan Cosman
fe1ff0ab9e Minor edits 2020-11-03 11:25:50 -08:00
Ilan Cosman
ec319f1739 Merge scuba branch 2020-10-26 16:51:07 -07:00
Michael Bryant
8f796136b5
use mktemp instead of explicitly named files (#41)
* add mktemp instead of explicitly named files

* use mktemp -u flag to fix bugs

Co-authored-by: Ilan Cosman <ilancosman@gmail.com>
2020-10-23 17:10:31 -07:00
Michael Bryant
f6cf2770e1
Prevent error messages while detecting OS (#40)
* add test for file existence to avoid errors
2020-10-23 15:07:41 -07:00
Ilan Cosman
a5d48b180b Minor edits 2020-10-16 15:45:40 -07:00
Ilan Cosman
46d8d7e519 Update tide completions 2020-10-15 15:35:09 -07:00
Ilan Cosman
9fc1b32f1a Add uninstall event handler 2020-10-15 15:15:17 -07:00
Ilan Cosman
3858228776 Switch to scuba 2020-10-12 15:05:51 -07:00
Ilan Cosman
9bfcbec6f3 Minor edits to uninstall 2020-10-02 16:08:47 -07:00
Ilan Cosman
f0a809f2a0 Simplify uninstall 2020-10-02 16:03:38 -07:00
Ilan Cosman
3f2ab29d28 Use builtin functions instead of head for uninstalling fish_prompt 2020-10-02 15:59:21 -07:00
Ilan Cosman
94a1b4cca6 Minor edits 2020-09-27 10:27:16 -07:00
Ilan Cosman
207d009c5e Add mock to tide test --install 2020-09-23 16:45:37 -07:00
Ilan Cosman
549080c455 Minor edits 2020-09-23 13:56:08 -07:00
Ilan Cosman
8d5a2a717c Slim down detect_os 2020-09-23 13:48:55 -07:00
Ilan Cosman
70a3eaf3d7 Fix bug when pwd started with / (fixes #25) 2020-09-21 17:20:30 -07:00
Ilan Cosman
79ed026a7c Combine string replaces in _tide_decolor, reformat vi_mode item 2020-09-21 11:21:23 -07:00
Ilan Cosman
2da3780ac7 Add vi_mode item, add prompt_char_vi variables 2020-09-19 19:30:12 -07:00
Ilan Cosman
6a74370086 Switch from fishtape to spout 2020-09-12 22:46:32 -07:00
Ilan Cosman
2d86c98542 Minor edits 2020-09-11 22:15:25 -07:00
Ilan Cosman
318bfeca54 Add support for lsb-release in detect_os (fixes #24) 2020-09-11 16:47:27 -07:00
Ilan Cosman
2a57609442 Minor optimizations 2020-09-08 08:13:15 -07:00
Ilan Cosman
7f0fdbc15f Undo broken optimization 2020-09-08 07:53:53 -07:00
Ilan Cosman
65dd379f3c Minor optimizations 2020-09-08 07:43:51 -07:00
Ilan Cosman
43469e4be8 Reorder nvm item 2020-09-08 07:29:24 -07:00
Ilan Cosman
81cfe19b0f Replace which with command --search 2020-09-07 19:53:12 -07:00
Ilan Cosman
edb8b28468 Minor edits 2020-09-07 12:00:54 -07:00
Ilan Cosman
5b3c25ffd8 Fix head options for MacOS 2020-09-07 11:41:18 -07:00
Ilan Cosman
1f617dd61e Remove unnecessary brackets 2020-09-06 21:34:58 -07:00
Ilan Cosman
e9baf3a1fc
Merge pull request #23 from xolve/nvmDisplay
Add nvm item
2020-09-06 21:30:51 -07:00
Ilan Cosman
3c4d8e1465 Add NVM_DIR to install, minor edits to nvm item 2020-09-06 21:26:19 -07:00
Ilan Cosman
ae4a33e719 nvm item revision 2020-09-06 18:10:10 -07:00
Xolve
fa23a38efc Add nvm display to prompt. 2020-09-06 23:53:47 +05:30
Ilan Cosman
24df67cd51 Add "; or echo" to every command substitution set_color 2020-09-05 14:48:27 -07:00
Ilan Cosman
7df5bed470 Add verbose flag to bug-report to make it more useful 2020-09-03 11:49:37 -07:00
Ilan Cosman
c756f4a681 Combin all pwd functions 2020-08-29 15:38:18 -07:00
Ilan Cosman
c2a4b4815e Add home and dir pwd icons 2020-08-29 12:13:36 -07:00
Ilan Cosman
4e29546667 Add number of jobs option (closes #5) 2020-08-24 17:20:45 -07:00
Ilan Cosman
581013beff Speed up rust item, type is slow, command is fast 2020-08-24 16:56:02 -07:00
Ilan Cosman
4c0e3205a1 Fix rust item 2020-08-20 08:44:50 -07:00
Ilan Cosman
650d3e6988 Add rust item, fix os item and configs 2020-08-19 10:35:04 -07:00
Ilan Cosman
28caddfb6e Document CI flag 2020-08-12 10:44:44 -07:00
Ilan Cosman
2d88b8ad58 Add CI flag to tests 2020-08-11 09:57:49 -07:00
Ilan Cosman
7e2b7cbca3 Fix tests for macos 2020-08-11 09:04:41 -07:00
Ilan Cosman
429625f979 Add context always_display option 2020-08-10 09:06:33 -07:00
Ilan Cosman
562a1aa9ee Refactor _tide_detect_os slightly 2020-08-08 14:20:42 -07:00
Ilan Cosman
99b44ebc02 Add tide_os_use_nearest, add os to configs 2020-07-29 20:37:18 -07:00
Ilan Cosman
a6d5eee879 Fallback to ID_LIKE if ID is unknown 2020-07-29 20:37:02 -07:00
Ilan Cosman
490b605ea3 Add detect_os and item_os 2020-07-29 20:36:57 -07:00
Ilan Cosman
eb400f55b0 Fix typo 2020-07-26 23:48:27 -07:00
Ilan Cosman
60060acc79 Change basename --suffix= to -s for macos compatability 2020-07-26 23:39:18 -07:00
Ilan Cosman
5fe7644620 Fallback bg colors to normal 2020-07-25 18:11:04 -07:00
Ilan Cosman
4d63841b4a Minor edits 2020-07-23 11:33:51 -07:00
Ilan Cosman
790029e004 Renovate tide help command 2020-07-23 10:57:40 -07:00
Ilan Cosman
295933d579 Rename some variables, minor edits 2020-07-23 09:12:08 -07:00
Ilan Cosman
46abf0472d Exchange short flags for long ones 2020-07-20 14:11:59 -07:00
Ilan Cosman
8d356d0d49 Add event blockers to wizard finish, prevents errors 2020-07-20 13:15:19 -07:00
Ilan Cosman
8c4dd87322 Add code conventions to contributing guide and update code to conform 2020-07-19 13:35:19 -07:00
Ilan Cosman
8b208bc130 Minor edits 2020-07-16 20:21:09 -07:00
Ilan Cosman
09c7f10cda Set tide_status_alway_display_icon if no prompt_char 2020-07-16 13:51:42 -07:00
Ilan Cosman
e9055703e9 Automate configuration menu options 2020-07-14 19:10:59 -07:00
Ilan Cosman
d6b4cc78c1 Move tide subcommands into functions folder 2020-07-14 18:30:58 -07:00
Ilan Cosman
914c6bc7c6 Remove uninstall from tide completions 2020-07-13 21:07:11 -07:00
Ilan Cosman
833d34917e Move tests into tide_theme folder, make tide_test a tide subcommand 2020-07-11 20:59:30 -07:00
Ilan Cosman
c0bfa1858b Update tests and functions 2020-07-11 16:45:23 -07:00
Ilan Cosman
69356d4a15 Update pwd test 2020-07-10 19:25:02 -07:00
Ilan Cosman
bb129150f8 Remove basename in virtual_env item 2020-07-09 17:34:15 -07:00
Ilan Cosman
11263702a2 Fix status spacing with no icon 2020-07-08 19:01:37 -07:00
Ilan Cosman
54b18da465 Update status unit test 2020-07-08 18:37:47 -07:00
Ilan Cosman
33e91ef45a Add rainbow configuration menus 2020-07-08 09:58:39 -07:00
Ilan Cosman
fbe3a8dd23 Lots of work on classic configuration 2020-07-07 15:55:11 -07:00
Ilan Cosman
462972dfac Move conf.d files to functions directory 2020-07-06 09:40:46 -07:00
Ilan Cosman
5c36bea01e Fix right prompt 2020-07-05 11:34:01 -07:00
Ilan Cosman
e168d48388 Fix right prompt frame 2020-07-04 19:14:21 -07:00
Ilan Cosman
0940198cc9 Add left prompt suffix 2020-07-04 14:01:56 -07:00
Ilan Cosman
a7564fac27 Add tide_status_always_display_icon 2020-07-04 14:01:56 -07:00
Ilan Cosman
7b97aa96a8 Right frame now always mirrors left frame 2020-07-04 14:01:56 -07:00
Ilan Cosman
db1a859bed Update tests 2020-07-04 14:01:56 -07:00
Ilan Cosman
32dd3efe5e Fix left frame bug 2020-07-04 14:01:56 -07:00
Ilan Cosman
189638cb46 Add right prompt frame 2020-07-04 14:01:56 -07:00
Ilan Cosman
3a75a22aff Add left prompt frame 2020-07-04 14:01:56 -07:00
Ilan Cosman
b46514cabc Update virtual_env item/vars for powerline 2020-07-04 14:01:56 -07:00
Ilan Cosman
b4e2efe5c6 Update lean config 2020-07-04 14:01:56 -07:00
Ilan Cosman
8fedb75468 Add suffix to right prompt 2020-07-04 14:01:56 -07:00
Ilan Cosman
c49dacfd5a Right prompt powerline works 2020-07-04 14:01:56 -07:00
Ilan Cosman
c9f6939192 Separator will not display after prompt_char 2020-07-04 14:01:56 -07:00
Ilan Cosman
a85d4cd6d1 Add left_prompt_prefix 2020-07-04 14:01:56 -07:00
Ilan Cosman
b5a26cb265 Lots of work on left prompt 2020-07-04 14:01:56 -07:00
Ilan Cosman
d5cf25d044 Add virtual_env item (#9) 2020-06-28 11:44:40 -07:00
Ilan Cosman
3be937b287 Minor edits 2020-06-10 09:18:15 -07:00
Ilan Cosman
9b8404bfb7 Add $_tide_color_normal var for speed 2020-06-07 20:14:15 -07:00
Ilan Cosman
45dfdd62d8 Add version flag to tide command 2020-06-06 17:51:24 -07:00
Ilan Cosman
077cfc2682 Rename variables for consistency 2020-06-06 11:57:43 -07:00
Ilan Cosman
88e0f3b9df Optimize pwd 2020-06-06 10:40:14 -07:00
Ilan Cosman
370871727f Fix first anchor bug 2020-06-05 19:18:15 -07:00
Ilan Cosman
6a957bd12a Rename vars 2020-06-05 18:47:02 -07:00
Ilan Cosman
c34beb85e7 Fix first dir color bug 2020-06-05 09:15:52 -07:00
Ilan Cosman
eb8e185636 Add anchor customization 2020-06-04 22:50:46 -07:00
Ilan Cosman
70e431d66b Remove double-checking of git repo 2020-05-28 14:27:53 -07:00
IlanCosman
7563db5de5 Convert nested functions to pipes, minor edits 2020-05-27 12:11:22 -07:00
IlanCosman
3b3c10d05e pwd now detects and anchors git repo 2020-05-26 16:20:42 -07:00
IlanCosman
db04ce2dbd $hostname instead of prompt_hostname 2020-05-25 21:23:13 -07:00
IlanCosman
a89fa71045 tide configure now also resets fish_prompt to default 2020-05-24 15:59:37 -07:00
IlanCosman
643bce7687 Add tide completions 2020-05-24 15:37:09 -07:00
Ilan Cosman
a21c438a20 Use fish_git_prompt %s trick instead of string replace 2020-05-23 10:27:46 -07:00
Ilan Cosman
2d366375e8 Rename configure files 2020-05-22 12:46:05 -07:00
Ilan Cosman
a5780a6b87 Add a second letter to truncation if first is . 2020-05-22 10:24:12 -07:00
Ilan Cosman
256c24e895 Allow for large truncate margin 2020-05-21 15:05:11 -07:00
Ilan Cosman
0d7f5a9709 Rename variables 2020-05-20 10:39:44 -07:00
Ilan Cosman
78110a8cfb Rename functions 2020-05-20 10:05:33 -07:00
Ilan Cosman
609ac07b04 More work on README 2020-05-20 09:16:02 -07:00
Ilan Cosman
73c8875c4b Add color customization to tide_pwd 2020-05-19 11:25:17 -07:00
Ilan Cosman
77bdd13b35 Allow customizing prompt_char 2020-05-19 11:01:01 -07:00
Ilan Cosman
1b2fcb7f42 Rename to tide 2020-05-18 20:03:25 -07:00
Ilan Cosman
a35fc7311c Specify printfs 2020-05-18 10:06:02 -07:00
Ilan Cosman
9793e8feb7 Fix one-line prompt bug 2020-05-18 09:44:33 -07:00
Ilan Cosman
fce619f246 Fix some multi-line prompt bugs 2020-05-18 09:04:47 -07:00
Ilan Cosman
6fba067de2 Start converting echo to printf 2020-05-17 13:47:53 -07:00
Ilan Cosman
a945195093 Small performance improvements 2020-05-17 10:14:03 -07:00
Ilan Cosman
8d37ae4522 Imrpove local_install 2020-05-17 10:01:17 -07:00
Ilan Cosman
a028be08b2 Minor edits 2020-05-16 21:50:36 -07:00
Ilan Cosman
1c286fc473 Fixed git_prompt bug, thank god 2020-05-16 21:43:27 -07:00
Ilan Cosman
53ed6c2883 Fix install 2020-05-15 16:06:01 -07:00
Ilan Cosman
ab1d200513 Multi-line right prompt 2020-05-14 21:53:37 -07:00
Ilan Cosman
8ad87ed74a Update tests, fix cmd_duration, fix right_prompt 2020-05-13 15:25:02 -07:00
Ilan Cosman
9b3ec5eabe Generalize prompt items, add left_prompt 2020-05-13 12:46:42 -07:00
Ilan Cosman
a54a3dead5 Add lots of tests 2020-05-08 22:48:35 -07:00
Ilan Cosman
41ee1233bf Switch to lean_decolor 2020-05-08 15:32:58 -07:00
Ilan Cosman
31fd9d8f85 Add minutes and hours to cmd_duration 2020-05-06 12:15:45 -07:00
Ilan Cosman
38c69a2558 Add dev files and test_pwd 2020-05-04 14:22:08 -07:00
Ilan Cosman
6c6f840ec2 Minor edits 2020-05-04 08:24:09 -07:00
Ilan Cosman
c85881961b Convert to meta/sub commands 2020-05-03 21:41:08 -07:00
Ilan Cosman
5f5a18b91d Colorize truncated dirs 2020-05-01 20:25:59 -07:00
Ilan Cosman
be781a786f Overhaul _shorten_pwd 2020-04-30 20:46:02 -07:00
Ilan Cosman
67b83a555a Add missing _lean_time function. Remove eval for speed 2020-04-30 16:30:23 -07:00
Ilan Cosman
049ade1e5d Minor edits 2020-04-29 19:19:17 -07:00
Ilan Cosman
efeadfbc90 Add time item, rename timer to cmd_duration 2020-04-29 17:06:11 -07:00
Ilan Cosman
ebd830b6d7 Switch pure strings to 2020-04-29 14:52:58 -07:00
Ilan Cosman
e68ee51173 Add status item 2020-04-29 12:32:59 -07:00
Ilan Cosman
ad5f0e0e32 Create LICENSE 2020-04-29 09:53:39 -07:00
Ilan Cosman
0dd773f302 Add background jobs right prompt item. Rename variables 2020-04-28 21:19:32 -07:00
Ilan Cosman
3caf26473e Add bold flag option to right prompt item colors 2020-04-28 15:43:22 -07:00
Ilan Cosman
8d562823fb Add lock icon to PWD. Add root detection to context. 2020-04-28 13:46:40 -07:00
Ilan Cosman
fb9b5459bf Remove exit after lean_uninstall 2020-04-27 16:38:17 -07:00
Ilan Cosman
275f06957a Remove fish_right_prompt from 1Line fake_prompt 2020-04-27 16:12:12 -07:00
Ilan Cosman
96e836100c Replace module with item 2020-04-27 15:37:08 -07:00
Ilan Cosman
7926ed2a7b Minor edits 2020-04-27 15:10:59 -07:00
Ilan Cosman
afbd202cbd Dont add newlines in wizard if less than 26 lines tall 2020-04-25 17:27:06 -07:00
Ilan Cosman
75441062c7 Increase uninstall specificity, protect user files 2020-04-25 14:52:39 -07:00
Ilan Cosman
54c6d7a0d3 Fix install colors. Use brace expansion in uninstall 2020-04-25 13:32:44 -07:00
Ilan Cosman
0ef05d9a9d Add true module support 2020-04-25 12:21:09 -07:00
Ilan Cosman
6419666798 Add ssh module 2020-04-24 21:32:21 -07:00
Ilan Cosman
bba6e423e5 Fix lean_pwd. Minor edits 2020-04-24 20:56:17 -07:00
Ilan Cosman
2861ea580e Optimize lean_pwd. Add confirmation on wizard finish 2020-04-22 15:19:58 -07:00
Ilan Cosman
fdfea51e5a Minor edits 2020-04-21 20:25:40 -07:00
Ilan Cosman
be227de5a7 Rm lean_user_ask in favor of situation specific menus 2020-04-21 20:06:05 -07:00
Ilan Cosman
dea611ca06 Fix wizard bug 2020-04-21 17:40:49 -07:00
Ilan Cosman
f9071dc3d9 Fix uninstaller and add default fish_prompt 2020-04-21 12:15:05 -07:00
Ilan Cosman
48ea32ffba Add right prompt 2020-04-21 11:52:24 -07:00
Ilan Cosman
c72a2b8447 Fix wizard 2020-04-20 20:35:56 -07:00
Ilan Cosman
3d225378b9 New prompt now appears directly after install 2020-04-20 11:12:57 -07:00
Ilan Cosman
165c8c6977 Alot of work on wizard, add prompt_modules 2020-04-20 09:38:41 -07:00
Ilan Cosman
6c39d874ba Minor edits 2020-04-16 21:31:45 -07:00
Ilan Cosman
e7d5b786d0 Rename functions with lean prefix 2020-04-16 21:20:58 -07:00
Ilan Cosman
76c9a4a447 Move all functions into seperate folder and source them 2020-04-16 01:09:07 -07:00
Ilan Cosman
ebcab5a04d Rename user_confirm to user_ask and generalize functionality 2020-04-15 14:09:59 -07:00
Ilan Cosman
3e0c70b9a4 Add user_confirm function 2020-04-14 17:52:21 -07:00
Ilan Cosman
4de13ecbb4 Minor edits 2020-04-13 12:57:21 -07:00
Ilan Cosman
149cde9954 Add confirmation dialog to lean_uninstall 2020-04-12 16:58:24 -07:00
Ilan Cosman
e3264edc27 Add lean_uninstall function 2020-04-12 15:40:49 -07:00
Ilan Cosman
16edc7f2b8 Download functions using for loop, streamline colors 2020-04-11 14:58:14 -07:00
Ilan Cosman
c8d7eecd3e Fix default prompt color 2020-04-11 10:45:49 -07:00
Ilan Cosman
3c02979438 Move theme functions into functions folder 2020-04-02 17:39:39 -07:00