Commit Graph

101 Commits

Author SHA1 Message Date
Nariyasu Heseri
9d8002226d theme/powerline: fix error scm: parameter not defined 2022-01-06 18:44:18 +09:00
John D Pell
2991aa66ca theme/powerline: SC2154, SC2248 2021-12-27 12:20:46 -08:00
Noah Gorny
2d1bd82575 Merge pull request #1975 from krapshsa/krapshsa-patch-1
Fix save-and-reload-history command not found
2021-10-18 22:22:21 +03:00
Noah Gorny
5feebcc9d9 Merge pull request #1974 from zou000/patch-1
Fix home dir substitution
2021-10-18 21:59:59 +03:00
krapshsa
b0e8729b0f Fix save-and-reload-history command not found 2021-10-19 00:58:01 +08:00
Noah Gorny
7987e4bfcd Merge pull request #1883 from seefood/ira/autosave-history-plml
Add history flushes on each command to the powerline themes
2021-10-17 19:51:56 +03:00
zou000
7911f770cf use \w 2021-10-16 22:29:25 -07:00
zou000
bb3a51f742 Update powerline.base.bash 2021-10-16 20:24:07 -07:00
zou000
413d7a1326 Fix home dir substitution
See the discussions in 953e422bed (commitcomment-58148656) . Tested with bash 5.1 and  bash 3.2
2021-10-16 19:15:00 -07:00
John D Pell
953e422bed theme/powerline: fix an oops in the last patch
The tilde should not have been escaped, and in fact I did not have it escaped in my main branch, but the PR I submitted did have it escaped and...now it shows up in the prompt line for all the PowerLine themes... oops.
2021-10-12 11:08:37 -07:00
Ira Abramov
d6239cf190 Merge branch 'master' of https://github.com/bash-it/bash-it into ira/autosave-history-plml
* 'master' of https://github.com/bash-it/bash-it: (114 commits)
  ci: Bump go to 1.17 from 1.14
  skip go tests when go is not available
  plugins: Add ble.sh plugin
  clean up pyenv plugin
  Lint: prepare `lib/utilities` for `shellcheck` (#1933)
  plugin/base: improvements (#1930)
  plugins/percol: `bind`
  completion/git: `shfmt` && `shellcheck`
  completion/git: expand search range
  plugin/percol: `shellcheck` & `shfmt`
  plugins/percol: use `_command_exists`
  completion/pip: simplify code flow
  plugin/less-pretty-cat: remove `|| cat`
  completion/wpscan: simplify code flow (whitespace)
  plugins/less-pretty-cat: simplify code flow
  plugins/less-pretty-cat: use `_command_exists`
  lib/helpers: cite `_bash-it-find-in-ancestor()`
  gradle: adopt `_bash_it_find_in_ancestor()`
  lib/helpers: new function `_bash-it-find-in-ancestor()`
  completion/laravel: simplify code flow
  ...
2021-10-11 08:32:15 +03:00
Ira Abramov
c3d333ddc4 fix based on remarks on PR 2021-10-10 15:25:45 +03:00
John D Pell
1c3cbf7ca6 Delete .shellcheckrc (#1947)
* CI: disable Ubuntu 16.04 as it's EOL

https://github.blog/changelog/2021-04-29-github-actions-ubuntu-16-04-lts-virtual-environment-will-be-removed-on-september-20-2021/

* main: lint false positive

* install: lint

* plugins/cmd-returned-notify: don't `export`

* plugins/xterm: lint

* plugins/git: lint

* plugins/goenv: lint

* plugins/alias-completion: lint false positives

* plugins/alias-completion: fix SC2155, SC2154

Declare `locals` at the top of the function

* completion: lint completions using `bash_completion` functions

Match the style of the existing code

* completion/knife: lint false positives

* completion/knife: lint

* completion/sdkman: lint

* completion/composer: lint

* Move `.shellcheckrc` under `themes/`

* lib/theme: fix SC2155, SC2154, SC2034

* lib/colors: don't warn on unused variables

We assign a large number of variables here and they may or may not be used anywhere else, so disable SC2034 for this file (only).

Alsö disable SC2005 as the functions in this file were written before `printf` was invented and have to do some fancy metascripting to get escape sequences interpreted reliably. I’m not smart enough to fix this to use `printf`, so leave it for now.

* themes/agnoster: lint

* themes: disable SC2154 for colors

Each one of these themes will need it’s own fix for SC2154, possibly upstream.

Due to the way themes are, it's entirely normal to have a *lot* of false positives for SC2034. So much so, that I have to admit that it is probably just not worth linting for SC2034 despite my dislike of blanket ignore rules.

* themes: disable SC2154, fix SC2155

Each one of these themes will need it’s own fix for SC2154, possibly upstream.

Due to the way themes are, it's entirely normal to have a *lot* of false positives for SC2034. So much so, that I have to admit that it is probably just not worth linting for SC2034 despite my dislike of blanket ignore rules.

* Delete `.shellcheckrc`

* remove executable bit
2021-09-18 12:50:59 +03:00
ofir shtrull
2444a57cc5 feat: add k8s namespace indicator (#1887)
* Add k8s namespace to prompt
2021-06-10 16:04:56 +03:00
Cristian Lupascu
1e6113f7b7 Add command duration to the powerline theme family
Fix the __powerline_duration_prompt: location & unused variable `prompt`

Remove the duration segment from powerline* theme defaults

Different color for duration prompt segment
2021-06-05 13:47:54 +03:00
Ira Abramov
9f4c71d40f Add history flushes on each command to the powerline themes. 2021-05-19 10:54:28 +03:00
Ofir Shtrull
ffc1701c0a Add to prompt google gcloud active account 2021-03-11 18:25:23 +02:00
David Farrell
e932d8371f Add hooks to check .sh and .bash headers - Fixes #1491 (#1765)
* Add hooks to check .sh and .bash headers
* Adds hooks/ to clean_files.txt
2021-01-09 18:02:26 +02:00
Noah Gorny
1702e0217a docs: Remove themes readmes 2020-12-04 17:24:26 +02:00
Kan Li
c13850faa2 Address some comments. 2020-11-28 19:07:10 -08:00
Kan Li
8ce9d8daa5 Add in_toolbox prompt to powerline themes
[Toolbox](https://github.com/containers/toolbox) is an containerized
development environment. This commit adds a promot to powerline when it
is running inside a toolbox.
2020-11-28 12:18:13 -08:00
David Farrell
a858e75456 Add Dir Support to Clean_Files; Clean powerline theme 2020-11-03 16:14:02 -08:00
Ira Abramov
3a1283dad5 Fix EOF 2020-10-29 19:57:14 +02:00
buhl
303e0a937e Simplified-sudo-check 2020-03-30 21:46:46 +02:00
Ofir Shtrull
84ad65c309 cleanup 2020-02-27 21:52:21 +02:00
Ofir Shtrull
936a79f619 now usable by all prompts 2020-02-27 20:53:35 +02:00
Ofir Shtrull
78397ad598 Add terraform workspace to prompt 2020-02-27 14:40:57 +02:00
David Farrell
920a97a264 Adds compact support to powerline themes 2019-12-30 11:29:12 -08:00
David Farrell
8d5233ac19 Fixes prompt color 2019-12-30 09:25:16 -08:00
David Farrell
546b4e948f Adds last segment prompt char to powerline default theme 2019-12-30 09:25:12 -08:00
David Farrell
e8ac112583 Adds history/command vars to remaining themes 2019-12-29 10:25:32 -08:00
David Farrell
ee5e1b63bc Adds history + command line number to powerline themes 2019-12-29 10:22:40 -08:00
David Farrell
e0c0a770d6 Updates README files for dirstack segment 2019-12-28 09:19:32 -08:00
David Farrell
f8ae0494e8 Adds dirstack segment to powerline themes 2019-12-28 09:15:42 -08:00
Nils Winkler
1383af0ca8 Merge pull request #1445 from davidpfarrell/soft-separator
Adds soft-separator support to powerline main + multiline themes
2019-12-28 13:15:21 +01:00
David Farrell
224fc123dc Updates README files for shlvl segment 2019-12-27 10:16:35 -08:00
David Farrell
8123b1c887 Adds shlvl segment to powerline themes 2019-12-27 10:16:07 -08:00
Nils Winkler
eb21a1da6c Merge pull request #1446 from davidpfarrell/short-user-hostname
Adds SHORT_USER/HOSTNAME support to powerline themes
2019-12-27 17:10:08 +01:00
David Farrell
921cfea68d Makes NODE vars configurable 2019-12-18 19:32:49 -08:00
David Farrell
db2c6683f1 Makes all powerline vars configurable
Makes all powerline vars configurable

Makes all powerline vars configurable

Makes all powerline vars configurable
2019-12-18 19:22:28 -08:00
Eduardo Bellido Bellido
a6e912854a Show NodeJS version in Powerline themes (#1438)
Currently, only nvm is supported.
2019-12-02 08:36:57 +01:00
David Farrell
55ce895141 Adds SHORT_USER/HOSTNAME support to powerline themes 2019-11-01 23:16:39 -07:00
David Farrell
83abf624dd Updates README files for soft separators 2019-11-01 17:51:22 -07:00
David Farrell
349c1df556 Adds soft-separator suport to powerline themes 2019-11-01 10:38:34 -07:00
Nils Winkler
6329d3bdd2 Merge pull request #1379 from leventyalcin/feature/save_history_immediately
add an env var that themes can save history immediately
2019-07-08 08:47:09 +02:00
Martin Ankerl
e42405705a Improved subversion support for powerline
SVN prompt also when in subdirectories that don't contain .svn
Show correct SVN status for powerline
2019-06-24 11:02:15 +02:00
Levent Yalcin
23fab13d85 requested changes has been made. 2019-06-10 10:57:52 +01:00
Anthony Wharton
81c3f70900 Add eval to SCM_BRANCH in powerline theme 2019-03-08 11:35:51 +00:00
Jeremy Mathevet
7e26ae28bf Add kubernetes-context segment to powerline 2018-11-13 12:29:53 +00:00
Eduardo Bellido Bellido
f757cad45a Add new segment, aws_profile, to powerline themes 2018-10-31 20:23:34 +01:00