Repository navigation
Expand file tree
/
Copy path.bashrc
More file actions
55 lines (45 loc) · 1.76 KB
/
Copy path.bashrc
File metadata and controls
55 lines (45 loc) · 1.76 KB
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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
LS_COLORS="di=\e[38;5;173;1:ow=\e[38;5;173;1:ex=\e[38;5;174;1:*.zip=\e[38;5;167;1:*.gz=\e[38;5;167;1:*.jar=\e[38;5;174;1:*.jpg=\e[38;5;111;1:*.jpeg=\e[38;5;111;1:*.gif=\e[38;5;111;1:*.png=\e[38;5;111;1:*.mp4=\e[38;5;111;1:*.mp3=\e[38;5;111;1:*.txt=\e[38;5;108;1:*.pdf=\e[38;5;108;1"
export LS_COLORS
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias diff='diff --color=auto'
alias tree='tree -n'
alias sdn='sudo shutdown -h now'
alias untar='tar -zxvf'
alias myip='curl ipinfo.io/ip'
alias mkdir='mkdir -pv'
alias bindings='grep --color=none -P "^\w+|^\#" ~/.config/sxhkd/sxhkdrc'
alias rmr='rm ~/pictures/screenshots/$(ls -At ~/pictures/screenshots/ | head -n 1)'
alias dlsong='youtube-dl --extract-audio --audio-quality 0 --audio-format mp3'
alias update='checkupdates -d && sudo pacman -Syu && yay'
alias mon2cam='while true; do timeout 120s mon2cam -f 60 -m 0 -r 1920:1080;date ; sleep .3; done'
alias dup='alacritty & disown'
alias combinepdf='gs -dNOPAUSE -sDEVICE=pdfwrite -sOUTPUTFILE=combined.pdf -dBATCH '
alias live-server='live-server --port=5500 --host=127.0.0.1 --quiet &'
alias qn='source quick nav'
alias qs='quick sesh'
alias v='nvim'
alias gb="git branch -vv"
alias ga="git add"
alias gs="git status"
alias gc="git checkout $1"
alias gd="git diff"
alias gpr="git pull --rebase"
# \[$purple$bold\]REPLACE[$reset\]
# \[$red$bold\]REPLACE[$reset\]
purple=$( tput setaf 5 )
red=$( tput setaf 1 )
bold=$( tput bold )
reset=$( tput sgr0 )
PS1='\[$purple$bold\][\u\[$reset\]\[$red$bold\]@\[$reset\]\[$purple$bold\]\h \[$reset\]\[$red$bold\]\W\[$reset\]\[$purple$bold\]]\$\[$reset\] '
stty -ixon
# vim bindings
set -o vi
if [[ $XDG_VTNR -eq 1 ]]; then
xset r rate 300 50
fi