Commit Graph

2435 Commits

Author SHA1 Message Date
Truong Ma Phi
4329da109e Update docker compose collection 2019-03-22 16:21:45 +07:00
Truong Ma Phi
7156011f83 Update docker completion 2019-03-22 16:21:29 +07:00
Nils Winkler
84d099bee4 Merge pull request #1339 from AnthonyWharton/fix-git-display
Remove escape characters in SCM_BRANCH variable
2019-03-19 09:28:31 +01:00
Nils Winkler
a9057bfdff Merge pull request #1344 from renanbr/patch-1
Add git patch alias
2019-03-19 09:19:44 +01:00
Nils Winkler
a3a623d046 Merge pull request #1343 from tbhaxor/parrot
added parrot os like terminal prompt
2019-03-19 09:18:34 +01:00
Renan
c61d716ee4 add git patch alias 2019-03-14 15:21:55 +01:00
tbhaxor
9576b878c8 🐛 fix in prompt 2019-03-14 13:11:04 +05:30
tbhaxor
7a88b6524e deleted unnecessary line 2019-03-14 13:04:37 +05:30
Nils Winkler
dbd0622129 Merge pull request #1340 from tbhaxor/bug-fix
bug fix in wpscan args
2019-03-14 08:20:37 +01:00
tbhaxor
2eeaf522c0 added parrot os like terminal prompt 2019-03-14 01:54:35 +05:30
tbhaxor
93348838a1 bug fix in wpscan args 2019-03-10 08:19:14 +05:30
Anthony Wharton
81c3f70900 Add eval to SCM_BRANCH in powerline theme 2019-03-08 11:35:51 +00:00
Nils Winkler
044ec29662 Merge pull request #1333 from tbhaxor/flutter-completions
added flutter completions
2019-02-26 08:38:09 +01:00
tbhaxor
29f79dfa75 🐛 fix 2019-02-25 16:45:52 +05:30
tbhaxor
50aebc5c6e fixed code style 2019-02-25 16:44:54 +05:30
Nils Winkler
825e351875 Merge pull request #1332 from markusdd/master
turn coloured cat and less into ccat and cless
2019-02-25 09:45:40 +01:00
tbhaxor
1e17fa1fd2 added flutter completions 2019-02-24 21:24:13 +05:30
markusdd
f14d4fcc3c turn coloured cat and less into ccat and cless
old approach would override systems cat, which is malicious when used in conjunction with shell piping or redirection
2019-02-22 14:41:01 +01:00
Nils Winkler
f02dab437a Merge pull request #1325 from rico-chet/interactive-shell-only
template/profile: Require interactive shell
2019-02-05 08:58:23 +01:00
Alex Thiessen
83c44fac64 template/profile: Require interactive shell
Bash is run either in interactive mode (e.g. in a terminal) or
non-interactive mode (e.g. on an SSH server handling an SCP request). In
the latter example, any output performed by bash-it's actions will be
interpreted as SCP reply on the client side, typically leading to failed
transfers. This is a well-known limitation of the SCP:
https://bugzilla.redhat.com/show_bug.cgi?id=20527.

In bash's own bashrc example, the first lines of code query for the mode
and return early if it's non-interactive:
http://git.savannah.gnu.org/cgit/bash.git/tree/examples/startup-files/bashrc?h=bash-5.0#n1.
This practice is adopted by Linux distributions (e.g. Ubuntu) and
probably other systems.

Current mode can be queried as described here:
https://www.gnu.org/software/bash/manual/html_node/Is-this-Shell-Interactive_003f.html.

Copy the according lines from Debian stretch's default .bashrc (as found
in https://packages.debian.org/stretch/bash under /etc/skel/.bashrc) to
the bash-it profile template to disable bash-it for non-interactive
shells.

As a side effect, this change makes SCP faster since the server doesn't
need to run any bash-it code in context of SCP handling.
2019-02-05 00:15:38 +01:00
Nils Winkler
71ee7083cf Merge pull request #1320 from rico-chet/editorconfig-user-friendly
editorconfig: Respect user rules
2019-02-04 08:29:27 +01:00
Alex Thiessen
55cf918918 editorconfig: Respect user rules
Editorconfig provides the concept of cascading rules, refer to
https://editorconfig.org/#file-location. For instance, I use a rule
which limits line length in git commit messages which enables `vim` to
re-flow the text by a simple command. Setting `root=true` in LT's own
`.editorconfig` file prevents any such user-defined rules from being
propagated.

Remove `root=true` to enable user-defined rules.
2019-02-02 10:28:24 +01:00
Nils Winkler
9c6ad0d35a Merge pull request #1317 from jrab66/master
metal theme added
2019-01-28 08:28:19 +01:00
jrab66
cb74bd63b9 squash screenshot 2019-01-25 15:00:21 -06:00
Nils Winkler
67c33a6de8 Merge pull request #1316 from Niil78/patch-4
Update general.aliases.bash
2019-01-23 08:37:42 +01:00
Nils Winkler
7e792b3618 Merge pull request #1313 from kaimingguo/add-aliases-in-msys
add aliases in MSYS2
2019-01-23 08:34:29 +01:00
NiilShon
34487076ba Update general.aliases.bash 2019-01-23 00:29:11 +01:00
Kai-Ming Guo
212eb6636e complete condition command
`test` command to check `$LS_COMMON` argument exists. and merged
the next line.
2019-01-22 17:19:35 +08:00
Kaiming Guo
af1bf11748 add MSYS2 aliases
Ignore NTUSER.DAT files in Git/MSYS2 Bash.
2019-01-22 14:38:58 +08:00
Nils Winkler
04937aa2ec Merge pull request #1312 from kylewelsby/bugfix/1203-bug-enable-alias-all
Fixes #1203 convert alias to aliases
2019-01-21 08:36:38 +01:00
Nils Winkler
78e9c0cf6a Merge pull request #1311 from kylewelsby/bugfix/missing-tmp-cache-exit-1
Fixes early exit if tmp cache is missing
2019-01-21 08:35:07 +01:00
Nils Winkler
a967bc4d2f Merge pull request #1310 from kylewelsby/master
Fixes #1309 _bash-it-clean-component-cache: command not found
2019-01-21 08:33:06 +01:00
Kyle Welsby
ca58587217 Fixes #1203 convert alias to aliases
A ungraceful patch but fixes this one case where the command is singular `alias` while the file are plural with `aliases.
2019-01-16 18:16:08 +00:00
Kyle Welsby
fedb72b34f Fixes exit 1 issue when tmp cache doesn't exist
Found if this `${cache}` file doesn't exist, the single line conditional command would return false causing a `exit 1`.

This little change makes the conditional verbose and not cause a false return failing the function.
2019-01-16 17:36:57 +00:00
Kyle Welsby
56945e3bdf Fixes #1309 _bash-it-clean-component-cache: command not found
Silence errors when installing

```
Would you like to enable the ag aliases? [y/N] y
~/.bash_it/lib/helpers.bash: line 488: _bash-it-clean-component-cache: command not found
ag enabled with priority 150.
```
2019-01-16 17:15:23 +00:00
Nils Winkler
792593c995 Merge pull request #1273 from kigster/kig/search/improved
Speed up bash-it Search & support exact matches
2019-01-14 09:05:02 +01:00
Nils Winkler
9f61cd3338 Merge pull request #1306 from LanikSJ/brew-cleanup
Remove Deprecated Brew Command
2019-01-09 09:10:30 +01:00
LanikSJ
ec088d4271 Remove Deprecated Brew Command 2019-01-08 14:01:54 -08:00
Nils Winkler
7a5b797da1 Merge pull request #1302 from tbhaxor/wpscan-completion
added wpscan completions
2019-01-07 08:31:23 +01:00
Nils Winkler
606e2586f1 Merge pull request #1303 from tbhaxor/vuejs-completions
added vuejs completions
2019-01-07 08:23:57 +01:00
tbhaxor
a636f602c8 added main option 2019-01-07 01:23:00 +05:30
tbhaxor
508f82eb95 added vuejs completions 2019-01-07 01:18:37 +05:30
tbhaxor
fe8f5e42d0 added wpscan completions 2019-01-07 01:10:21 +05:30
Nils Winkler
7cfa6a33fb Merge pull request #1300 from claui/fix-reload-regression
Make `bash-it reload` preserve working directory
2019-01-03 11:18:07 +01:00
Claudia
0fe631ea7c Make bash-it reload preserve working directory
In e5b6869 (part of #1283), a regression was introduced, which caused
`bash-it reload` to return with the working directory set to
`.bash_it` and the original working directory discarded.

The root cause is the function wrapper of `bash-it reload`, which has
always relied on the working directory not to change during execution
of the wrapped code. This assumption no longer holds with the changes
introduced in #1283.

This commit fixes the regression by using `pushd`/`popd` in `bash-it
reload`.
2019-01-02 17:45:43 +01:00
Nils Winkler
3b47bc3684 Merge pull request #1294 from devopsdeluxe/theme_essential
New theme: essential
2018-12-29 12:15:37 +01:00
Dan Beste
7b41736d17 New theme: essential
A simple, console-compatible Bash-it theme.

Features:
  * Reactive coloring for:
    * Privileged and standard users.
    * Local and remote hosts.
    * Exit status for prompt strings 1 and 2.
  * Console-compatible!
    * No unicode "tofu" in console sessions.
  * Matching alignment for prompt strings 1 and 2.

Preview:

    $PS1| $TIME $USER@$HOST:$PWD
    $PS1|  + function foo() {
    $PS2|  |   bar
    $PS2|  |   baz
    $PS2|  | }
2018-12-28 21:26:28 -06:00
Nils Winkler
e3acbc1f61 Merge pull request #1289 from zou000/master
Add alias for listing untracked files
2018-12-28 09:01:49 +01:00
Li Zou
2bc990269a Add alias for listing untracked files 2018-12-22 15:25:08 -08:00
Nils Winkler
b5f2cc3d4e Merge pull request #1287 from nwinkler/percol-fix
Fix Percol plugin
2018-12-18 09:28:17 +01:00