-
Notifications
You must be signed in to change notification settings - Fork 1
/
.zsh_aliases
32 lines (26 loc) · 1.34 KB
/
.zsh_aliases
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/bin/zsh
0=${${(M)${0::=${(%):-%x}}:#/*}:-$PWD/$0}
# Aliases, used to simplify commands and make them easier to remember.
## Network related aliases.
alias ipconfig="ip addr"
alias iwconfig="ip addr"
## GUI/WM/DE related aliases.
alias which_window="xprop" # X11, gets window information.
## Filesystem related aliases.
alias ls="exa -go --icons=auto --no-quotes --hyperlink" # Faster `ls` with colors.
alias l="ls -l" # Prints single lines, more details.
alias la="l -a" # `l` but includes hidden files.
alias laa="la -a" # `l` but includes "." and "..".
alias cp="xcp" # A better `cp`, shows progress.
## File interaction related aliases.
alias img="viu" # Shows images in capable terminals.
alias hex="hexyl" # Hex viewer.
alias cat="bat --style=full --pager=never" # Pretty `cat`, styling and colors.
alias bat="bat --pager=never -p" # Simple `cat` with colors.
alias less="less -R" # Color support for `less`.
## Convenience/UX related aliases.
alias q="exit" # Quick exit.
alias wiki="wiki-tui" # Wikipedia TUI.
alias cd="z" # sets cd to use zoxide.
## Misc. aliases.
alias calc="eva" # CLI calculator.