> For the complete documentation index, see [llms.txt](https://riteshs4hu.gitbook.io/infosec-notes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://riteshs4hu.gitbook.io/infosec-notes/kali-linux-setup/zshrc.md).

# zshrc

Environment Variables, Commands, and Aliases:

```
vim ~/.zshrc
```

***

Paths

```bash
export dir2="/usr/share/seclists/Discovery/Web-Content/directory-list-2.3-medium.txt"
```

***

Command: Display All IP Addresses

```bash
echo -e "\033[1;32m========= All IPS ============\033[0m\n$(ip -o -4 addr show | awk '{split($4, a, "/"); printf "\033[1;31m| %-8s : \033[0m\033[1;33m%-15s\033[0m\033[1;34m |\033[0m\n", $2, a[1]}')\n\033[1;36m==============================\033[0m"

```

***

### Custom Aliases

```bash
alias l='grc ls -lha'
alias e='exit'
alias ifconfig='grc ifconfig'
alias nmap='grc nmap'
alias ping='grc ping'
alias ns='nmap -v -sC -sV -sT -A -p- '
```
