mirror of https://github.com/captn3m0/dotfiles.git
Adds gettoken
This commit is contained in:
parent
00cdae020d
commit
8eba098410
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue