Alias pour cat et meilleure utilisation de source-highlight
This commit is contained in:
parent
ad45725642
commit
ab5148150c
1 changed files with 2 additions and 6 deletions
|
@ -16,13 +16,9 @@ exec_as qemu "$@"
|
|||
|
||||
bin=bin
|
||||
images=images
|
||||
if [ -t 1 ]; then
|
||||
cat=src-hilite-lesspipe.sh
|
||||
else
|
||||
cat='cat'
|
||||
fi
|
||||
PATH="./${bin}:${PATH}"
|
||||
EDITOR="${EDITOR:-nvim}"
|
||||
[ -t 1 ] && alias cat='source-highlight -o STDOUT -f esc'
|
||||
alias ls='ls --color=auto'
|
||||
alias exec='exec '
|
||||
shopt -s expand_aliases
|
||||
|
@ -109,7 +105,7 @@ public_shell() {
|
|||
}
|
||||
|
||||
public_cat() {
|
||||
exec "$cat" "${bin}/${1}"
|
||||
exec cat "${bin}/${1}"
|
||||
}
|
||||
|
||||
function="$1"
|
||||
|
|
Loading…
Reference in a new issue