revision my zshrc
there where an old pythonpath and a function wasn't correct
This commit is contained in:
parent
a814619c49
commit
246d477ea5
6
.zshrc
6
.zshrc
@ -54,7 +54,7 @@
|
|||||||
|
|
||||||
# Customize to your needs...
|
# Customize to your needs...
|
||||||
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:$HOME/.scripts
|
export PATH=$PATH:/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/usr/X11R6/bin:$HOME/.scripts
|
||||||
export PYTHONPATH=/usr/lib/python3.4/site-packages
|
export PYTHONPATH=/usr/lib/python3.9/site-packages
|
||||||
|
|
||||||
# if colors of ls don't work as expected the following line delete all colors from ls
|
# if colors of ls don't work as expected the following line delete all colors from ls
|
||||||
# export LS_COLORS="rs=0:di=01;96:ln=04;01;35:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30; 43:ca=30;41:tw=30;42:$"
|
# export LS_COLORS="rs=0:di=01;96:ln=04;01;35:mh=00:pi=40;33:so=01;35:do=01;35:bd=40;33;01:cd=40;33;01:or=40;31;01:su=37;41:sg=30; 43:ca=30;41:tw=30;42:$"
|
||||||
@ -67,8 +67,8 @@
|
|||||||
#source /usr/share/zsh/plugins/zsh-dircolors-solarized/zsh-dircolors-solarized.zsh
|
#source /usr/share/zsh/plugins/zsh-dircolors-solarized/zsh-dircolors-solarized.zsh
|
||||||
|
|
||||||
# function to detect ddos attacks
|
# function to detect ddos attacks
|
||||||
function detect-ddos { $
|
function detect-ddos {
|
||||||
sudo netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort - n $
|
sudo netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n
|
||||||
}
|
}
|
||||||
|
|
||||||
# function to simple block suspicious IPs
|
# function to simple block suspicious IPs
|
||||||
|
Loading…
Reference in New Issue
Block a user