update zsh files
This commit is contained in:
parent
836f33e50f
commit
194064c601
@ -10,11 +10,13 @@ alias cl='clear'
|
||||
alias ag='alias | grep'
|
||||
alias hg='history | grep'
|
||||
|
||||
if command_exists iptables; then
|
||||
alias ipl='sudo iptables -L -n'
|
||||
if [ -f "/etc/network/if-pre-up.d/iptables-load" ]; then
|
||||
alias ipe='sudo nano /etc/network/if-pre-up.d/iptables-load'
|
||||
alias ips='sudo /etc/network/if-pre-up.d/iptables-load'
|
||||
fi
|
||||
fi
|
||||
|
||||
command_exists() { command -v "$@" >/dev/null 2>&1; }
|
||||
|
||||
|
||||
@ -4,7 +4,7 @@ if [ -d "$HOME/.local/bin" ]; then
|
||||
command_exists trash-put && alias rm='trash-put'
|
||||
fi
|
||||
|
||||
# Docker
|
||||
# Docker Rootless
|
||||
if [ -f "$HOME/.config/systemd/user/docker.service" ]; then
|
||||
export DOCKER_HOST=unix:///run/user/$(id -u)/docker.sock
|
||||
fi
|
||||
@ -12,6 +12,8 @@ fi
|
||||
# Golang
|
||||
if [ -f "/usr/local/go/bin/go" ]; then
|
||||
export PATH=$PATH:/usr/local/go/bin
|
||||
fi
|
||||
if [ -f "$HOME/.local/go/bin/go" ]; then
|
||||
export PATH=$PATH:$HOME/.local/go/bin
|
||||
fi
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user