-
Notifications
You must be signed in to change notification settings - Fork 1
/
bashrc
62 lines (56 loc) · 1.56 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
# .bashrc
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export PATH=$PATH:/home/pi/bin
alias ..="cd .."
alias .config="cd ~/.config"
alias Downloads="cd ~/Downloads"
alias Pictures="cd ~/Pictures"
alias d="cd"
alias df="duf"
alias g="rg"
alias gh="rg --context=4"
alias h="htop"
alias m="mpv"
alias c="cvlc"
alias v="vim"
alias o="pkill -x"
alias r="ranger"
alias s="ssh -i '$HOME/.ssh/pi2comp' [email protected]"
alias x="sudo bash"
alias ls="lsd --group-directories-first --git -F"
alias lsl="lsd --group-directories-first --git --long --color always -h -F --blocks permission,user,size,git,date,name --date relative"
alias lsa="lsd --group-directories-first -A --git --long --color always -h -F --blocks permission,user,size,git,date,name --date relative"
alias lst="lsd --group-directories-first -A --tree --git --long --color always -h -F --blocks permission,user,size,git,date,name --date relative"
function pf() {
if [ -z "$1" ]; then
printf "pf needs a process name to search for\n"
false
else
ps -au | rg "$1"
fi
}
function t() {
if [ -z "$1" ]; then
tremc -X -r
true
elif [ -z "$2" ]; then
printf "Starting %s...\n" "$1"
tremc "$1" > /dev/null
rm "$1" 2> /dev/null
tremc -X -r
true
elif [ -z "$3" ]; then
printf "Starting %s with speed %s kbps....\n" "$1" "$2"
tremc "$1" > /dev/null
transmission-remote -asd "$2"
rm "$1" 2> /dev/null
tremc -X -r
true
else
printf "Too many arguments\n" > /dev/stderr
false
fi
}
PS1='\[\e[1;31m\]\u@\h\] \[\e[1;34m\]\W\[\e[m\] \[\e[1;32m\]\$\[\e[m\] '
#PS1='[\u@\h \W]\$ '