add bash completion
This commit is contained in:
parent
23a8c12bca
commit
65dc4d8c40
3 changed files with 17 additions and 0 deletions
7
Makefile
7
Makefile
|
|
@ -87,3 +87,10 @@ clean:
|
|||
|
||||
clear:
|
||||
rm $(BINDIR)/$(NAME)
|
||||
|
||||
install:
|
||||
cp lxsh /usr/local/bin
|
||||
cp completion/lxsh.bash /etc/bash_completion.d
|
||||
|
||||
uninstall:
|
||||
rm /usr/local/bin/lxsh /etc/bash_completion.d/lxsh.bash
|
||||
|
|
|
|||
|
|
@ -27,6 +27,12 @@ sudo mv lxsh /usr/local/bin
|
|||
|
||||
## Other
|
||||
|
||||
Clone this repository then:
|
||||
```shell
|
||||
make -j
|
||||
sudo make install
|
||||
```
|
||||
|
||||
See [Build](#build).
|
||||
|
||||
# Features
|
||||
|
|
@ -45,6 +51,7 @@ These commands can be placed anywhere within the script like regular commands.
|
|||
|
||||
Reduce code size to a minimum without changing functionality with the `-m` option.
|
||||
|
||||
> This option should be safe to use in any situation
|
||||
|
||||
#### Behaviors of the minify option
|
||||
|
||||
|
|
|
|||
3
completion/lxsh.bash
Normal file
3
completion/lxsh.bash
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
#/usr/bin/env bash
|
||||
|
||||
complete -F _longopt lxsh
|
||||
Loading…
Reference in a new issue