init
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
commit
2165077322
1
.gitattributes
vendored
Normal file
1
.gitattributes
vendored
Normal file
|
@ -0,0 +1 @@
|
|||
/plugin/** linguist-language=Shell
|
14
LICENSE
Normal file
14
LICENSE
Normal file
|
@ -0,0 +1,14 @@
|
|||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
Version 2, December 2004
|
||||
|
||||
Copyright (C) 2022 Ari Archer <ari.web.xyz@gmail.com>
|
||||
|
||||
Everyone is permitted to copy and distribute verbatim or modified
|
||||
copies of this license document, and changing it is allowed as long
|
||||
as the name is changed.
|
||||
|
||||
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
|
||||
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||
|
||||
0. You just DO WHAT THE FUCK YOU WANT TO.
|
||||
|
19
README.md
Normal file
19
README.md
Normal file
|
@ -0,0 +1,19 @@
|
|||
# Baz plugin: cmdutils-baz-plugin
|
||||
|
||||
> Baz plugin for adding more command line utilities
|
||||
|
||||
# Installation
|
||||
|
||||
- Using [baz plugin manager](https://ari-web.xyz/gh/baz):
|
||||
|
||||
```bash
|
||||
$ baz install git 'https://ari-web.xyz/gh/cmdutils-baz-plugin'
|
||||
```
|
||||
|
||||
# Aliases
|
||||
|
||||
- `mimetypeof` -- Get mime type of an input file
|
||||
- `dos2unix` -- Convert a DOS file to a UNIX file
|
||||
- `showtopcmd` -- Show top `n` ammount of commands
|
||||
- `beep` -- Beep
|
||||
- `rshell` -- Reset shell
|
8
baz.env
Normal file
8
baz.env
Normal file
|
@ -0,0 +1,8 @@
|
|||
export BAZP_NAME='cmdutils-baz-plugin'
|
||||
export BAZP_LICENSE='WTFPL'
|
||||
export BAZP_VER=1
|
||||
export BAZP_AUTHOR='Ari Archer'
|
||||
export BAZP_SRC='plugin'
|
||||
export BAZP_METHOD='git'
|
||||
export BAZP_SOURCE='https://ari-web.xyz/gh/cmdutils-baz-plugin'
|
||||
export BAZP_DESCRIPTION='Baz plugin for'
|
1
plugin/aliases/beep
Normal file
1
plugin/aliases/beep
Normal file
|
@ -0,0 +1 @@
|
|||
(speaker-test -l 1 -f 1500 -t sine -P 2 -X >/dev/null)& pid="$!"; sleep 0.08; kill -9 $pid
|
1
plugin/aliases/dos2unix
Normal file
1
plugin/aliases/dos2unix
Normal file
|
@ -0,0 +1 @@
|
|||
sed -i $'s/\r$//'
|
1
plugin/aliases/mimetypeof
Normal file
1
plugin/aliases/mimetypeof
Normal file
|
@ -0,0 +1 @@
|
|||
xdg-mime query filetype
|
1
plugin/aliases/rshell
Normal file
1
plugin/aliases/rshell
Normal file
|
@ -0,0 +1 @@
|
|||
rm -f $HISTFILE && reset && $SHELL && exit 127
|
1
plugin/aliases/showtopcmd
Normal file
1
plugin/aliases/showtopcmd
Normal file
|
@ -0,0 +1 @@
|
|||
fc -l 1 | \$__BASH_BIN_DIR/awk '{CMD[\$2]++;count++;}END { for (a in CMD)print CMD[a] \" \" CMD[a]/count*100 \"% \" a;}' | \$__BASH_CORE_BIN_DIR/grep -v './' | \$__BASH_BIN_DIR/column -c3 -s ' ' -t | \$__BASH_BIN_DIR/sort -nr | \$__BASH_BIN_DIR/nl | \$__BASH_BIN_DIR/head -n
|
Loading…
Reference in a new issue