-
Notifications
You must be signed in to change notification settings - Fork 0
/
.aliases
48 lines (39 loc) · 1.2 KB
/
.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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
# =====================
# = Command Shortcuts =
# =====================
# Use `eza` instead of `ls` with some default options
alias l='eza --color=auto --icons=auto --classify=auto --group-directories-first --header --time-style=long-iso'
alias ls='l'
# Same as above + show all files except "." & ".."
alias la='ls --all'
# Same as above + long list + use powers of 1000 vs. 1024 + ISO time
alias ll='la --long'
# Same as above + sort by modification time
alias lm='ll --modified --sort=modified'
# Same as 'll' above + output as a tree
alias lt='ll --tree --level=2 '
# Make RM [semi]interactive + protect root + verbose
alias rm='rm --preserve-root -Iv'
# Make LN interactive
alias ln='ln -i'
# Make MV interactive + verbose
alias mv='mv -iv'
# Make CP verbose
alias cp='cp -v'
# Terminal control
alias t='wezterm cli set-tab-title'
alias wt='wezterm cli set-window-title'
alias q=exit
alias c="clear"
# alias ssh="ssh -X"
# Cleanup ripgrep output for piping
alias rgc='rg --color=never --no-heading --no-line-number --no-filename'
# Keep bunzip2 decompressed files
alias bunzip2='bunzip2 -k'
# Editor
alias v=nvim
# use bat instead of cat, for previews, etc.
alias cat='bat'
alias fzf='fzf '
# Yazi
alias f='y'