Commit Graph

682 Commits (master)

Author SHA1 Message Date
Rui Hu 997c228794 Remove usage of caret in redirection
```
~/.config/fish/functions/fish_prompt.fish (line 162): Expected a string, but instead found a '&'
      git rev-parse --quiet --verify HEAD > /dev/null ^&1; or set empty 1
```
2020-03-02 13:57:49 +01:00
Bo Maryniuk a8a545c7dd Ditch shrink_path plugin, shrink path manually
New Option: SHELLDER_KEEP_PATH

You can turn off shrinking via exporing SHELLDER_KEEP_PATH variable
2020-03-02 13:57:49 +01:00
Hyeon Kim 00f57f20ff Relicense under 'Apache-2.0 OR MIT' 2020-03-02 13:57:49 +01:00
Hyeon Kim f9d8ffbc1f Update README.md 2020-03-02 13:57:49 +01:00
Bo Maryniuk 5aecab60ec Update status colors and display an actual error code, if any 2020-03-02 13:57:49 +01:00
Hyeon Kim 14c49fd5f9 Verify shellder with shellcheck
1.  Double quoted variables to prevent possible word splitting
2.  Avoid the use of double quote if possible
3.  Avoid the use of anonymous function
4.  Avoid the redundant process creationg

Reference:
  https://www.shellcheck.net/
2020-03-02 13:57:49 +01:00
Hyeon Kim 51b50fa4ba Update default colors
1.  Rollback CONTEXT_BG/FG, DIRECTORY_BG/FG

    It was difficult to recognize because of low contrast. Rolled back.

2.  Update UNTRACKED_BG

    The UNTRACKED_BG color looked so "safe". Make it yellow so that
    users notice something happened.

3.  Update STAGED_BG/FG

    The color 196(=#FF0000) looks too dangerous while there's nothing
    wrong with staged files.

4.  Update ADDED_BG/FG

    I want to use 'black' as foreground color consistently

5.  Update VIRTUALENV_BG/FG

    Make it more distinguishable
2020-03-02 13:57:49 +01:00
Hyeon Kim 02c90a1cc3 Skip 'prompt_context' if user is not using SSH 2020-03-02 13:57:49 +01:00
Bo Maryniuk b975fd94d0 distinct between newly added and staged existing files in Git. Improve performance. 2020-03-02 13:57:49 +01:00
Bo Maryniuk 747637d067 Kill redundant virtenv name 2020-03-02 13:57:49 +01:00
Bo Maryniuk 37df7e954e Add unpushed colors 2020-03-02 13:57:49 +01:00
Bo Maryniuk c37a2e3522 added more git status features similar to bobthefish, updated colors 2020-03-02 13:57:49 +01:00
Hyeon Kim f676e31f4e Update README.md 2020-03-02 13:57:49 +01:00
Hyeon Kim 2a4a3de066 Update README.md 2020-03-02 13:57:49 +01:00
Florestan Bredow 436affcb56 Change la couleur d'affichage du repertoire courant / désactive mercurial/cvs 2018-10-24 10:36:18 +02:00
Hyeon Kim 6c26828cee
Remove the usage of function name 'available'
It conflicts with oh-my-fish.

Closes #29
2017-12-30 23:25:01 +09:00
Hyeon Kim b6753bbc1b
Optimize command existance checking, support fish 2.0.0
Reference:
  https://github.com/simnalamburt/shellder/issues/28#issuecomment-347747014
2017-11-29 13:28:05 +09:00
Hyeon Kim 01bb6d9de6
Do not create 'type -q' function for fish≥2.2.0
Closes #28

Reference:
  https://github.com/simnalamburt/shellder/issues/28#issuecomment-347737020
2017-11-29 12:05:26 +09:00
Hyeon Kim 45ce7f80e2
Merge pull request #27 from pbzweihander/master
Faster existance checking
2017-10-30 18:06:29 +09:00
pbzweihander efe543594b faster existance checking 2017-10-30 15:39:48 +09:00
Hyeon Kim eee0b292b4
Merge pull request #24 from pbzweihander/master
Add optional shrink-path feature
2017-10-30 15:14:14 +09:00
Konrad Podlawski 32f5c987eb Add fish_mode_prompt.fish
Make mode prompt display correctly when using `fish_vi_keybindings`. Comparison: https://i.imgur.com/yNYkKV2.png
2017-10-30 12:46:23 +09:00
pbzweihander 1da1049354 check shrink_path exist 2017-10-25 18:07:47 +09:00
pbzweihander 6948b6264b shrinking path 2017-10-25 17:51:57 +09:00
松本雄伍 fc38278c2f available to type -q 2017-04-22 10:47:36 +09:00
norang 556f9999a8 Make it enable to customize color scheme with environment variables 2017-01-07 04:35:25 +09:00
Hyeon Kim 349a741f72 Update README.md 2017-01-07 00:12:23 +09:00
Hyeon Kim 9467c60769
(fish) Reset color at the end of prompt
Closes #11
2016-12-28 10:15:21 +09:00
Hyeon Kim ca0ac9e7d1 Reflect updated zplug's behavior
Closes #20
2016-11-29 09:11:55 +09:00
Hyeon Kim a7f4f58355 (misc) Fix hyperlink to zplug
The URL of zplug repo has been changed.
2016-11-09 15:58:22 +09:00
Hyeon Kim cf5f29b4ae (misc) Update README.md
Create hyperlink to zplug
2016-11-09 15:57:50 +09:00
Hyeon Kim 17e96dbcee Merge pull request #19 from xtendo-org/readme-chips
Use chips
2016-11-09 15:54:15 +09:00
XT 9d1b34203e Use chips 2016-11-09 15:42:11 +09:00
Hyeon Kim 67f894cb58
Revert "Replace `available` usage with `type -q`"
This reverts commit 6199f40d44.

I reverted this commit to support fish 2.0.0 properly, since `-q` option
of `type` function was introduced in fish 2.2.0.

See also:
  6f7a7459c1
  https://github.com/fish-shell/fish-shell/pull/1540
  https://github.com/fish-shell/fish-shell/issues/54
2016-10-28 18:43:46 +09:00
Hyeon Kim 56177cc4ce Merge pull request #16 from joseluisq/master
Add fisher namespace for plugin installation
2016-08-19 13:49:09 +09:00
José Quintana 5456ef4d63 Add fisher namespace for plugin installation 2016-08-18 21:28:17 -05:00
Hyeon Kim b3c4e03340 Document how to download powerline patched fonts
Closes #12
2016-08-18 14:09:56 +09:00
Hyeon Kim 7227d4282a Update README.md
1.  Fix grammer errors & typos
2.  Mention fisher on README
2016-08-18 13:54:09 +09:00
Hyeon Kim 6199f40d44
Replace `available` usage with `type -q` 2016-04-23 07:24:40 +09:00
Hyeon Kim a8c433b816 Better variable naming
$theme_hide_hostname = yes -> $theme_hostname = never
$theme_hide_hostname = no  -> $theme_hostname = always

Reference:
  https://github.com/simnalamburt/shellder/pull/8#issuecomment-170362176
2016-01-24 22:09:45 +09:00
Vlad Frolov f9064d65f8 Fixed theme_hide_hostname check
Default unset state of `theme_host_hostname` will still mean auto-mode, but explicit `no` value will force to always show a hostname.
2016-01-10 22:52:34 +07:00
Hyeon Kim 5ef781be9f Merge pull request #7 from fisherman/master
Make segment_separator explicitly global to support fundle / Fisherman.
2016-01-03 23:49:33 +09:00
Jorge Bucaran e3d14761b2 Make segment_separator explicity global to support fundle / Fisherman.
Related https://github.com/oh-my-fish/theme-bobthefish/pull/19
2016-01-03 23:42:42 +09:00
Hyeon Kim db7b333f54 License badge 2016-01-03 11:15:06 +09:00
Hyeon Kim 504f4df281 Add a shellder image to the README
Closes #3
2016-01-03 10:27:02 +09:00
Hyeon Kim 9dbb6608ed Organize comments 2016-01-03 10:16:33 +09:00
Hyeon Kim 2fbc585747 Shellder is now listed in oh-my-fish db 2016-01-03 10:03:37 +09:00
Hyeon Kim 5437883f24 How to install; with omf 2016-01-03 09:11:59 +09:00
Hyeon Kim 3dc4a71f41 Remove unused files 2016-01-03 08:49:24 +09:00
Hyeon Kim 74ae95fca8 Merge remote-tracking branch 'fish/master'
Merge shellder.zsh and shellder.fish into one repo
2016-01-03 08:48:17 +09:00