forked from ahurac/dotfiles
qemush : fonction cat
This commit is contained in:
parent
1d3d68926b
commit
9881409b40
1 changed files with 9 additions and 0 deletions
|
@ -16,6 +16,11 @@ exec_as qemu "$@"
|
||||||
|
|
||||||
bin=bin
|
bin=bin
|
||||||
images=images
|
images=images
|
||||||
|
if [ -t 1 ]; then
|
||||||
|
cat=src-hilite-lesspipe.sh
|
||||||
|
else
|
||||||
|
cat=cat
|
||||||
|
fi
|
||||||
|
|
||||||
PATH="./${bin}:${PATH}"
|
PATH="./${bin}:${PATH}"
|
||||||
EDITOR="${EDITOR:-nvim}"
|
EDITOR="${EDITOR:-nvim}"
|
||||||
|
@ -101,6 +106,10 @@ public_shell() {
|
||||||
bash -i
|
bash -i
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public_cat() {
|
||||||
|
"$cat" "${bin}/${1}"
|
||||||
|
}
|
||||||
|
|
||||||
function="$1"
|
function="$1"
|
||||||
shift
|
shift
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue