-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_aliases
58 lines (48 loc) · 2.03 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
58
# single quote inside alias : '"'"'
# general aliases
alias ls='ls -l --color=auto --group-directories-first'
alias ll='ls -lFAX'
alias lt='ls -lgGFAX --human-readable'
alias mkdir='mkdir -p'
alias grep='grep --color=auto'
alias xrs='xrdb ~/.Xresources'
alias open='xdg-open'
# Colorize commands when possible.
alias \
grep="grep --color=auto" \
diff="diff --color=auto" \
ccat="highlight --out-format=ansi"
# Config files easy access aliases
alias c-bash='vim ~/.bashrc'
alias c-vim='vim ~/.vimrc'
alias c-i3='vim ~/.config/i3/config'
alias c-poly='vim ~/.config/polybar/colorblocks/config.ini'
alias c-ranger='vim ~/.config/ranger/rifle.conf'
alias c-rofi='vim ~/.config/rofi/launchers/text/style_4'
alias c-htop='vim ~/.config/htop/htoprc'
alias c-xrs='vim ~/.Xresources'
alias c-compton='vim ~/.config/compton/compton.conf'
alias c-mutt='vim ~/.config/mutt/muttrc'
alias c-ncmpcpp='vim ~/.config/ncmpcpp/config'
alias c-cava='vim ~/.config/cava/config'
alias c-dunst='vim ~/.config/dunst/dunstrc'
alias c-firefox='cd ~/.mozilla/firefox/bz9srtah.default-release/chrome/'
alias c-cava='vim ~/.config/cava/cava'
alias c-alacritty='vim ~/.config/alacritty/alacritty.yml'
alias c-newsboat='vim ~/.config/newsboat/config'
alias c-mpv='vim ~/.config/mpv/mpv.conf'
# Editor based aliases
alias vim='nvim'
alias vi='vim'
alias tree="ls -R | grep ":$" | sed -e 's/:$//' -e 's/[^-][^\/]*\//--/g' -e 's/^/ /' -e 's/-/|/'"
# External package aliases
#alias yt-ch='youtube-dl --list-formats'
#alias yt-dl='youtube-dl -f bestvideo+bestaudio'
#alias yt-mp3='youtube-dl --extract-audio --audio-format mp3 -f bestaudio'
#alias yt-pl='youtube-dl --yes-playlist -f bestvideo+bestaudio'
#alias yt-pl-mp3='youtube-dl --extract-audio --audio-format mp3 --yes-playlist -f bestaudio'
alias yt-ch='yt-dlp --list-formats'
alias yt-dl='yt-dlp -f bestvideo+bestaudio'
alias yt-mp3='yt-dlp --extract-audio --audio-format mp3 -f bestaudio'
alias yt-pl='yt-dlp --yes-playlist -f bestvideo+bestaudio'
alias yt-pl-mp3='yt-dlp --extract-audio --audio-format mp3 --yes-playlist -f bestaudio'