add bat help
This commit is contained in:
parent
710e30d350
commit
c8025c2cde
1 changed files with 7 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
function cl() {
|
function cl() {
|
||||||
DIR="$*"
|
DIR="$*"
|
||||||
# if no DIR given, go home
|
# if no DIR given, go home
|
||||||
if [ $# -lt 1 ]; then
|
if [ $# -lt 1 ]; then
|
||||||
DIR=$HOME
|
DIR=$HOME
|
||||||
fi
|
fi
|
||||||
builtin cd "${DIR}" &&
|
builtin cd "${DIR}" &&
|
||||||
# use your preferred ls command
|
# use your preferred ls command
|
||||||
|
@ -72,3 +72,8 @@ py2nb2html() {
|
||||||
echo "generating html file for $pyfile"
|
echo "generating html file for $pyfile"
|
||||||
jupytext --to notebook -o - $pyfile | jupyter nbconvert --execute --to html --stdin $@
|
jupytext --to notebook -o - $pyfile | jupyter nbconvert --execute --to html --stdin $@
|
||||||
}
|
}
|
||||||
|
|
||||||
|
alias bathelp='bat --plain --language=help'
|
||||||
|
help() {
|
||||||
|
"$@" --help 2>&1 | bathelp
|
||||||
|
}
|
||||||
|
|
Loading…
Reference in a new issue