mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2025-12-26 02:12:33 +01:00
added functions
This commit is contained in:
parent
12737a7a7b
commit
76802382a0
1 changed files with 16 additions and 0 deletions
|
|
@ -38,3 +38,19 @@ function take() {
|
||||||
cd $1
|
cd $1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function logview() {
|
||||||
|
if [ -x $(which ccze) ]; then
|
||||||
|
ccze -A < $1 | less -R
|
||||||
|
else
|
||||||
|
cat $1 | less -R
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
function logtail() {
|
||||||
|
if [ -x $(which ccze) ]; then
|
||||||
|
tail -f $1 | ccze
|
||||||
|
else
|
||||||
|
tail -f $1
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue