forked from coleaderme/setup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
66 lines (64 loc) · 2.34 KB
/
bashrc
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
59
60
61
62
63
64
65
66
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
# PS1='[\u@\h \W]\$ '
PS1='\W \$ '
#oh-my-bash
alias less='less -FSRXc' # Preferred 'less' implementation
alias wget='wget -c' # Preferred 'wget' implementation (resume download)
alias path='echo -e ${PATH//:/\\n}' # path: Echo all executable Paths
alias show_options='shopt' # Show_options: display bash options settings
#Custom alias
alias 7zx='7z x'
alias am='mpv "$(fzf -e +x)"'
alias ar='aria2c --summary-interval 2 --user-agent=Mozilla/5.0 --file-allocation=falloc -c -j 3 -x 3 -s 3 -k 1M'
alias au='audacious "$(fzf -e +x)"'
alias cd..='cd ..'
alias fd="fd -H"
alias chx='chmod +x'
alias cls='clear'
alias fz='thunar $(fzf --algo=v1 -e -m +x)'
alias dc='cd $(dirname $(fzf --algo=v1 -e -m +x))'
alias gm='git commit -m'
alias la='exa -a'
alias ll='exa -la'
alias ls='exa'
alias mm='subl ~/.bashrc'
alias mpc="mpv --profile=1080p"
alias myip='curl ifconfig.me && echo -e ""'
alias off='sudo poweroff'
alias pack='7z a -m0=copy'
alias packx='7z a -m0=copy -p0000 -mhe'
alias rg='rg -i'
alias so='source ~/.bashrc'
alias swp='sudo swapoff -a'
alias wm='sudo nano /etc/X11/xinit/xinitrc'
alias neofetch='fastfetch'
#YT
alias yt="yt-dlp --restrict-filenames --cookies-from-browser chromium --downloader aria2c --external-downloader-args '-UMozilla/5.0 -c -j 3 -x 3 -s 3 -k 1M'"
alias ytx='yt-dlp -x --restrict-filenames'
alias ytf='yt-dlp -F'
alias ytd="yt-dlp --restrict-filenames --downloader aria2c --external-downloader-args '-UMozilla/5.0 -c -j 3 -x 3 -s 3 -k 1M'"
alias ytt="yt-dlp -f 'bestvideo[height<=1080]+251' --restrict-filenames --external-downloader-args '--UMozilla/5.0 -c -j 3 -x 3 -s 3 -k 1M'"
#Installs
alias syy='sudo pacman -Syy'
alias syu='sudo pacman -Syu'
alias install='sudo pacman -S'
alias un='sudo pacman -Rns'
alias clean='sudo pacman -Scc && sudo pacman -Sc'
alias py='python'
alias pi='sudo pip install'
alias pu='sudo pip uninstall'
alias pl='sudo pip list'
alias sopy='source bin/activate'
alias uwg='sudo wg-quick up wg'
alias dwg='sudo wg-quick down wg'
alias dwgg='sudo wg-quick down wgg'
alias uwgg='sudo wg-quick up wgg'
alias ipd='sudo ip link set enp2s0 down'
alias ipu='sudo ip link set enp2s0 up'
#Mount
alias mountt='sudo mount -o noatime /dev/sdb1 ~/T'
alias umountt='sudo umount ~/T'