Adds gettoken

This commit is contained in:
Nemo 2018-09-20 17:40:06 +05:30
parent 00cdae020d
commit 8eba098410
1 changed files with 7 additions and 0 deletions

View File

@ -61,6 +61,9 @@ if [[ -x /usr/bin/dircolors ]]; then
alias egrep='egrep --color=auto'
fi
# Drone related stuff
export DRONE_SERVER=https://drone.razorpay.com
# some more ls aliases
alias ll='ls -alF'
alias la='ls -A'
@ -84,6 +87,10 @@ function kne() {
-o 'go-template={{range .items}}{{.involvedObject.name}}{{"\t"}}{{.involvedObject.kind}}{{"\t"}}{{.message}}{{"\t"}}{{.reason}}{{"\t"}}{{.type}}{{"\t"}}{{.firstTimestamp}}{{"\n"}}{{end}}'
}
function gettoken() {
export "`basename $1`"="$(pass show $1)"
}
# Get inotify listener counts
function inotifytop() {
for foo in /proc/*/fd/*; do readlink -f $foo; done |grep inotify |cut -d/ -f3 |xargs -I '{}' -- ps --no-headers -o '%p %U %a' -p '{}' |uniq -c |sort -n