Commit Graph

2706 Commits

Author SHA1 Message Date
Alex Thiessen
668306cae7 test/plugins/base: Run myip test
Test of `myip` was skipped, allegedly for it being slow. It's fast for
me (~400 ms), so enable it unconditionally.
2020-04-08 12:56:04 +02:00
Alex Thiessen
7a83c56d3a plugins/base: Detect HTTP errors in myip()
Out of the box, `curl` reports success (via exit code) even if the
server returns an error, e.g. _429 Too Many Requests_ which was
sometimes the case with `http://myip.dnsomatic.com`. So, errors went
undetected.

There is the `--fail` switch which enables us to use the exit code the
way we need:

> -f, --fail
>        (HTTP) Fail  silently  (no  output  at  all)  on  server
>        errors. This is mostly done to better enable scripts etc
>        to better deal with failed  attempts.  In  normal  cases
>        when  an  HTTP  server  fails  to deliver a document, it
>        returns an HTML document stating so  (which  often  also
>        describes  why  and  more).  This flag will prevent curl
>        from outputting that and return error 22.

Use it to make the `myip()` deliver results reliably.
2020-04-07 00:01:09 +02:00
Nils Winkler
e33e4eeb00 Merge pull request #1550 from nwinkler/ng-check-completion
Added a check for the ng command in ng completion
2020-04-06 16:17:08 +02:00
Nils Winkler
6b4970136b Added a check for the ng command in ng completion
See #1542, #1543
2020-04-06 16:14:27 +02:00
Nils Winkler
4d7b897e5f Merge pull request #1543 from tbhaxor/patch-1
Update ng.completion.bash
2020-04-06 09:22:03 +02:00
Gurkirat Singh
5ad244da87 Update ng.completion.bash 2020-04-02 18:59:10 +05:30
Nils Winkler
88231867b6 Merge pull request #1528 from davidpfarrell/plugins/goenv
Fix goenv plugin
2020-04-01 10:46:18 +02:00
Nils Winkler
f4618ae918 Merge pull request #1536 from BarbUk/update/barbuk_theme_ssh
Theme barbuk: Add ssh detection and user@host information in ssh session
2020-04-01 10:17:33 +02:00
BarbUk
3c6ffeb44f Update theme var prefix 2020-04-01 12:09:54 +04:00
Nils Winkler
a1b78effb0 Merge pull request #1540 from davidpfarrell/plugins/brainy/sudo
theme/brainy: Update sudo check method
2020-04-01 10:02:21 +02:00
Nils Winkler
968436f088 Merge pull request #1539 from davidpfarrell/plugins/atomic/sudo
theme/atomic: Update sudo check method
2020-04-01 10:01:47 +02:00
David Farrell
1d6b01018d theme/brainy: Update sudo check method 2020-03-31 14:11:05 -07:00
BarbUk
0896ff2fb3 Use same notation for user@hostname 2020-04-01 01:08:38 +04:00
BarbUk
d6d4e4bc7d Fix typo 2020-04-01 01:05:15 +04:00
BarbUk
78db4d56f0 Update documentation to explain new BARBUK_HOST_INFO configuration 2020-04-01 01:02:24 +04:00
David Farrell
d79fc5027b theme/atomic: update sudo check method 2020-03-31 14:02:22 -07:00
BarbUk
347995d33e Allow to customize hostname format 2020-04-01 01:02:01 +04:00
BarbUk
6d0744a928 Update documentation 2020-04-01 00:48:11 +04:00
BarbUk
d39eb053cf Allow to disable ssh info 2020-04-01 00:46:58 +04:00
BarbUk
337ed0de9a Documentation for ssh and sudoer configuration 2020-03-31 12:16:06 +04:00
BarbUk
81c4ed70ea Add user@host information for ssh session 2020-03-31 12:15:28 +04:00
Nils Winkler
ca843e7b93 Merge pull request #1535 from buhl/simple-sudo-check
Simplified-sudo-check
2020-03-31 08:51:58 +02:00
Nils Winkler
4ef9cff4f9 Merge pull request #1532 from BarbUk/update/barbuk_theme
Font usage for theme barbuk and git glyphs customization
2020-03-31 08:29:24 +02:00
buhl
303e0a937e Simplified-sudo-check 2020-03-30 21:46:46 +02:00
BarbUk
f4cc8ddb77 Allow git glyphs customization 2020-03-30 14:23:58 +04:00
BarbUk
611d4f234f Update font documentation 2020-03-30 02:11:30 +04:00
BarbUk
5654874aee Documentation: font usage for theme barbuk 2020-03-30 01:53:27 +04:00
Nils Winkler
30f0efe873 Merge pull request #1526 from davidpfarrell/aliases/git/git-switch
Aliases/git/git switch
2020-03-29 16:30:25 +02:00
David Farrell
f52453c643 Fix goenv plugin 2020-03-25 11:29:12 -07:00
David Farrell
0274d36cd7 Use long option values 2020-03-25 10:04:27 -07:00
David Farrell
30ae4d9e5f Add git switch aliases (gsw*) 2020-03-25 09:49:51 -07:00
Nils Winkler
52123d5072 Merge pull request #1510 from cornfeedhobo/add-goenv
Add goenv plugin
2020-03-25 08:42:17 +01:00
Nils Winkler
2332c9e82e Merge pull request #1522 from matthewadams/patch-1
netshoot alias for k8s
2020-03-25 08:23:07 +01:00
Nils Winkler
159a1ce3e0 Merge pull request #1520 from shiguol/enhance_envy_theme
envy theme add python virtual_env display support.
2020-03-25 08:21:39 +01:00
Nils Winkler
f70bd44990 Merge pull request #1524 from ucomesdag/patch-1
Update vagrant.completion.bash
2020-03-25 08:20:06 +01:00
All Your Code
287d9d4b4f Update vagrant.completion.bash
Fixed command options changes of the Vagrant command. Completion has been broken for a while, especially the snapshot options.
2020-03-22 15:12:40 +01:00
Matthew Adams
7a347b2c51 netshoot alias for k8s
Provides a quick bash prompt in the k8s cluster using https://hub.docker.com/r/nicolaka/netshoot
2020-03-20 14:04:23 -05:00
salex
21885dabb4 add THEME_SHOW_RUBY_PROMPT. 2020-03-20 19:25:45 +08:00
Nils Winkler
733f047026 Merge pull request #1519 from edubxb/new-line-as-separator
Use new line character instead semicolon in the preexec hook
2020-03-20 08:59:57 +01:00
salex
fd162c0786 add RUBY_VERSION_PROMPT_DISABLED parameter for PS1 prompt. 2020-03-20 09:44:06 +08:00
salex
7f8652999b fix code review issues. 2020-03-19 21:27:54 +08:00
salex
167dc43a87 envy theme add python virtual_env display support. 2020-03-18 14:07:22 +08:00
Eduardo Bellido Bellido
1bf9bbde0d Use new line character instead semicolon in the preexec hook 2020-03-14 22:56:30 +01:00
Nils Winkler
b35d41464c Merge pull request #1516 from davidpfarrell/cht.sh
Add cht.sh plugin
2020-03-11 08:06:05 +01:00
David Farrell
ab7f15bee1 Added a comment 2020-03-10 23:02:33 -07:00
David Farrell
8e9dadfaad Adds metadata + support for multiple arguments 2020-03-10 22:58:39 -07:00
Nils Winkler
d9bcbf4c1f Merge pull request #1512 from BarbUk/feature/theme-barbuk
Add theme barbuk
2020-03-10 08:17:20 +01:00
cornfeedhobo
58d3acfd88 add goenv plugin 2020-03-10 02:03:05 -05:00
David Farrell
6419d9246d Add cht.sh plugin 2020-03-09 12:38:05 -07:00
Nils Winkler
2e53796d49 Added comment for docker-compose-fresh alias
Closes #1513
2020-03-09 16:07:59 +01:00