pid_for function has been added to find the process responsible for a port
This commit is contained in:
parent
f432800e97
commit
3b79969fa4
|
@ -0,0 +1,8 @@
|
||||||
|
pid_for() {
|
||||||
|
echo $(ss -lptn "sport = :$1")
|
||||||
|
echo "---------\n"
|
||||||
|
echo $(netstat -nlp | grep ":$1")
|
||||||
|
echo "---------\n"
|
||||||
|
echo $(lsof -n -i ":$1" | grep LISTEN)
|
||||||
|
|
||||||
|
}
|
|
@ -1,17 +0,0 @@
|
||||||
# Path to your oh-my-zsh configuration.
|
|
||||||
#ZSH=$HOME/src/oh-my-zsh
|
|
||||||
MYZSH=$HOME/src/My.Zsh
|
|
||||||
|
|
||||||
THEME=$MYZSH/themes/lxsameer.zsh-theme
|
|
||||||
|
|
||||||
# Example aliases
|
|
||||||
alias emacsw="emacs -nw"
|
|
||||||
|
|
||||||
source $MYZSH/my.zsh
|
|
||||||
PROJECTS=$HOME/src/
|
|
||||||
|
|
||||||
|
|
||||||
eval $(keychain --eval --agents ssh -Q --quiet id_rsa)
|
|
||||||
|
|
||||||
export PATH=/home/lxsameer/.gem/ruby/2.0.0/bin:$PATH
|
|
||||||
export GEM_HOME=~/.gem/
|
|
Loading…
Reference in New Issue