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
Travis Swicegood
1dadfc92ba
Merge pull request #1283 from Bash-it/bugfix/bash_completion_debian
...
Bugfix - issue with sourced files (noted by @caguettaz)
2018-12-05 22:07:07 -06:00
Travis Swicegood
0793eb41a7
Ignore SC2139 – it's ok that these are expanded when evaluated
2018-12-05 21:00:41 -06:00
Travis Swicegood
61380e686f
Remove unused function
2018-12-05 21:00:09 -06:00
Travis Swicegood
e5b68695c0
Attempt to simplify by not using aliases
2018-12-04 22:02:10 -06:00
caguettaz
13b6f3d870
[cleanup] Cleaned escaped newlines for alias reload
2018-12-04 16:31:03 +01:00
caguettaz
a1bbecc4a5
[bugfix] Fixed reload aliases
2018-12-04 15:58:21 +01:00
caguettaz
e198d8dc3d
[bugfix] Fixed config family names for reload aliases
2018-12-04 14:58:13 +01:00
caguettaz
f06439edc3
[cleanup] Harmonized variable names, added support for global config files
2018-12-04 14:30:11 +01:00
Travis Swicegood
babb1e6675
Adjust to only show merges into master
...
Adding `--first-parent` ensures that only commits from the master branch
are used when showing the history. I've verified this change directly
by comparing the `rev-list` output for `703105c..97df5c45`:
```console
$ git rev-list --merges 703105c...97df5c4
97df5c4540
b5976ada25
$ git rev-list --merges --first-parent 703105c...97df5c4
97df5c4540
```
Note: I've created this branch from 703105c so that I can merge `master`
into it and test `bash-it update` once merged.
2018-12-03 21:17:49 -06:00
Travis Swicegood
185c2879d5
Update to show the subject if the body is empty
2018-12-02 10:53:56 -06:00
Travis Swicegood
8e7a566d96
Show update prompt when running bash-it update
...
This utilizes the body of the merged PR requests to show the commits
that are included in this update. It gives the user a chance to
decline the upgrades by pressing n or N.
2018-12-02 10:47:11 -06:00
Christophe Aguettaz
2f3d4bd130
[cleanup] Added missing global variable cleanup
2018-11-23 22:59:19 +01:00
Christophe Aguettaz
1ba023c97a
[bugfix][wip] Fixed issue with Debian's bash-completion
2018-11-23 22:25:14 +01:00
Eduardo Bellido Bellido
4df44b1fa9
Bash-it don't returns to the previous path after update
2018-11-12 22:59:14 +01:00
Nils Winkler
f6e2fdd2cf
Fixed reload command in the update function
2018-07-19 09:00:43 +02:00
Nils Winkler
4192d07f4f
Fixed indentation and a broken character
2018-07-19 09:00:42 +02:00
Brett A. Rogers
9571c11ad0
Return to original directory after reload
2018-05-16 14:58:59 -04:00
Piotr Rogoża
89d1661d23
Replaced reload section with proper function.
...
Added completion for reload.
Fixed order in completion
Added unit tests for completion
The variable BASH_IT_AUTOMATIC_RELOAD_AFTER_CONFIG_CHANGE has to be unset.
2018-04-18 21:51:20 +02:00
Piotr Rogoża
b1dbf2f7e0
Added additional parameter for bash-it: reload
...
Added creating an alias if command does not exist
2018-04-18 21:51:20 +02:00
Mike Fiedler
7b17c17b09
Add a comparison URL to version
...
In order to make a swift comparison between the currently-installed
version vs the latest commits on `master`, emit a clickable URL that
will show the user the exact changes.
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2018-03-05 09:33:09 -05:00
Mike Fiedler
b0bceb963e
Replace subshell for git hash, add remote info
...
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-10-01 16:20:28 -04:00
Mike Fiedler
8015bba27f
Exit directory upon completion, update tests
...
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-30 20:06:42 -04:00
Mike Fiedler
71bda32dc0
Add version to commands
...
Add a helper to show the current git SHA of the installed git repo.
Signed-off-by: Mike Fiedler <miketheman@gmail.com>
2017-09-29 05:39:36 -04:00
Jean Jordaan
ca6a1ae2db
Use 'mktemp -t', leave tempfile cleanup to the OS
2017-09-28 21:54:58 +07:00
Nils Winkler
145ec5dfaa
Copied command_exists function to the helpers lib so that there is no hidden dependency on the base plugin
...
The original command_exists function will stay in the base plugin, but will no longer be used by other plugins or themes.
2017-09-17 21:05:59 +02:00
Nils Winkler
fd637a3dc6
Loading components from global enabled directory
2017-09-17 21:05:59 +02:00
Nils Winkler
5210707da8
Test cases for loading from global directory
2017-09-17 21:05:59 +02:00
Nils Winkler
f57bd1e131
Fixed issues with migrating components with the same name
...
dirs.plugin.bash was recognized while looking for dirs.completion.bash in the global enabled directory.
2017-09-17 21:05:59 +02:00
Nils Winkler
aa9a63a10e
Added message after migrating about possible fixes.
...
See #985 for background.
2017-09-17 21:05:59 +02:00
Nils Winkler
0791895236
Fixed some more shellcheck complaints
2017-09-17 21:05:58 +02:00
Nils Winkler
475b0778dd
Fixed a couple of shellcheck complaints
2017-09-17 21:05:58 +02:00
Nils Winkler
88ef16ccc7
Fixed migration order on macOS
2017-09-17 21:05:58 +02:00
Nils Winkler
6e34d4f837
Simplified disable all
2017-09-17 21:05:58 +02:00
Nils Winkler
1810eddaf3
Using compgen instead of globw
2017-09-17 21:05:58 +02:00
Nils Winkler
729f21c106
Reading bash-it help lists aliases from global enabled directory
2017-09-17 21:05:58 +02:00
Nils Winkler
c26476f56e
Fixed bash-it help aliases for todo.txt-cli
2017-09-17 21:05:58 +02:00
Nils Winkler
e0554cb512
Test cases and fix for bash-it help aliases foo
2017-09-17 21:05:58 +02:00
Nils Winkler
4cda9c0a43
Started work on bash-it help aliases
2017-09-17 21:05:58 +02:00
Nils Winkler
5ff873e058
Fixed "bash-it help aliases" cases, more to come...
2017-09-17 21:05:58 +02:00
Nils Winkler
9f3ef22538
Describe function supports new directory structure
2017-09-17 21:05:57 +02:00
Nils Winkler
591c8a67f3
Support both enabled formats during migration
2017-09-17 21:05:57 +02:00
Nils Winkler
375515cc6e
Use compgen -G instead of ls for finding enabled components
...
Reference: https://stackoverflow.com/a/34195247/1228454
2017-09-17 21:05:57 +02:00
Nils Winkler
7242cc0927
Fix glob expression for finding enabled components
2017-09-17 21:05:57 +02:00
Nils Winkler
2ac08cae0f
Fix one migration case
2017-09-17 21:05:57 +02:00
Nils Winkler
6fa235a825
Start work on migration to global directory
2017-09-17 21:05:57 +02:00
Nils Winkler
f892269aff
Fix reload function to use the old and the new directory
2017-09-17 21:05:57 +02:00
Nils Winkler
5f3627b9b7
Change the enable/disable functions to use the global directory
2017-09-17 21:05:57 +02:00
Nils Winkler
b106d275a7
Move enable/disable functionality to global enabled directory
2017-09-17 21:05:57 +02:00
Nils Winkler
2581abdf54
Fix some issues that showed the todo.txt-cli aliases in the wrong way
2017-06-24 17:31:31 +02:00