Skip to content

Commit 918bb26

Browse files
committed
Add greppy
1 parent 0b3d068 commit 918bb26

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

assets/macros/bashrc

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,3 +152,23 @@ grepgo()
152152
echo
153153
echo ------------------------------------------------------------------------------------------
154154
}
155+
greppy()
156+
{
157+
clear
158+
echo ------------------------------------------------------------------------------------------
159+
echo
160+
echo
161+
grep -R -in --include=\*.py "$@"
162+
echo
163+
echo ------------------------------------------------------------------------------------------
164+
}
165+
watchdockers()
166+
{
167+
watch -n2 'docker ps --format "table {{.Names}}\t{{.Status}}\t{{.Image}}\t{{.Ports}}"'
168+
}
169+
watchkube()
170+
{
171+
watch -n2 'microk8s kubectl get -n default all'
172+
}
173+
174+

0 commit comments

Comments
 (0)