-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
57 lines (46 loc) · 1.57 KB
/
.bash_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
48
49
50
51
52
53
54
55
56
57
# Aliases
# git
alias jgs="jt-gs.sh"
alias jgt="gfold | rg -e unclean -e unpushed || true"
alias jgc="jt-gc.sh"
alias jvcs="vcs status $HOME/Code | rg -e modified -e ==="
# todotxt
alias t="todo.sh -d $HOME/.config/todotxt-cli/todo.cfg"
alias to="todo.sh -d $HOME/.config/todotxt-cli/todo-work.cfg"
# cd
alias ..="cd .."
alias ...="cd ../.."
alias cd1="cd .."
alias cd2="cd ../.."
alias cd3="cd ../../.."
alias cd4="cd ../../../.."
# emacs
## Simpler config for terminal use
alias emacsnw="emacs -Q -nw -l ~/Code/dotfiles/.config/emacs/setup/minimal.el"
# eza
alias exa="eza"
alias eza="eza --icons -lh --group-directories-first --git"
alias e="eza -alh"
## Changing "ls" to "exa"
# alias ls='eza -al --color=always --group-directories-first' # my preferred listing
# alias la='eza -a --color=always --group-directories-first' # all files and dirs
# alias ll='eza -l --color=always --group-directories-first' # long format
# alias lt='eza -aT --color=always --group-directories-first' # tree listing
# alias l.='eza -a | egrep "^\."'
# grep
# Colorize grep output (good for log files)
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
# fzf
alias fe="fzf | xargs $EDITOR"
alias fkill='ps -ef | fzf | awk '\''{print $2}'\'' | xargs kill -9'
# Lazygit
alias lg='lazygit'
# rofi UI
alias rofi='rofi -lines 12 -padding 18 -width 60 -location 0 -show drun -sidebar-mode -columns 3'
# yt-dlp
# List formats for a URL, Check URL is downloadable
alias ytf="yt-dlp -F URL"
# Download file with at best 720p resolution
alias yt720="yt-dlp -S 'res:720'"