Fixed zshrc
This commit is contained in:
parent
c8f4134b69
commit
aeefdd48b9
@ -75,7 +75,7 @@ dedir(){
|
|||||||
}
|
}
|
||||||
mt(){
|
mt(){
|
||||||
if [[ -z "$1" ]]; then
|
if [[ -z "$1" ]]; then
|
||||||
echo "Opts:\nm xe gogs dm syncthing" >&2
|
echo "Opts:\nm xe gogs dm syncthing g" >&2
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
case $1 in
|
case $1 in
|
||||||
@ -84,6 +84,8 @@ mt(){
|
|||||||
gogs) sudo multitail /var/log/gogs.{err,log};;
|
gogs) sudo multitail /var/log/gogs.{err,log};;
|
||||||
dm) dmesg -w;;
|
dm) dmesg -w;;
|
||||||
syncthing) sudo multitail /var/log/syncthing.{err,log};;
|
syncthing) sudo multitail /var/log/syncthing.{err,log};;
|
||||||
|
g) sudo watch -c genlop -tc;;
|
||||||
|
sync) watch grep -e Dirty: -e Writeback: /proc/meminfo;;
|
||||||
*) multitail "$1"
|
*) multitail "$1"
|
||||||
esac
|
esac
|
||||||
}
|
}
|
||||||
@ -329,10 +331,6 @@ create-repo(){
|
|||||||
PRIVATE="false"
|
PRIVATE="false"
|
||||||
shift
|
shift
|
||||||
;;
|
;;
|
||||||
\?)
|
|
||||||
echo "Usage: create-repo [-p] name" >&2
|
|
||||||
return 1
|
|
||||||
;;
|
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
if [ -z "$1" ]; then
|
if [ -z "$1" ]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user