Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
This commit is contained in:
Ari Archer 2022-06-10 21:58:51 +03:00
commit 2165077322
Signed by untrusted user who does not match committer: ari
GPG key ID: A50D5B4B599AF8A2
9 changed files with 47 additions and 0 deletions

1
.gitattributes vendored Normal file
View file

@ -0,0 +1 @@
/plugin/** linguist-language=Shell

14
LICENSE Normal file
View 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
View 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
View 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
View 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
View file

@ -0,0 +1 @@
sed -i $'s/\r$//'

View file

@ -0,0 +1 @@
xdg-mime query filetype

1
plugin/aliases/rshell Normal file
View file

@ -0,0 +1 @@
rm -f $HISTFILE && reset && $SHELL && exit 127

View 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