-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbash
More file actions
46 lines (39 loc) · 1.12 KB
/
Copy pathbash
File metadata and controls
46 lines (39 loc) · 1.12 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
PS1='\[\e[1m\]\[\e[36m\]\w\[\e[0m\]\$ '
alias bt='sudo systemctl start bluetooth'
alias bt-earbuds='bluetoothctl connect "78:15:2D:5F:E7:6A"'
alias bt-stop='sudo systemctl stop bluetooth'
alias clip='xclip -sel clipboard'
alias diff='diff --color=auto'
alias e='setsid emacs'
alias ec='emacsclient -n'
alias grep='grep --color=auto'
alias ll='ls -lah'
alias ls='ls --color=auto'
alias mkresume='pandoc -V geometry:margin=0.7in -V fontsize=10pt'
alias py='python -q'
alias recon='sudo systemctl restart NetworkManager'
alias sdcv='sdcv --color'
alias susp='systemctl suspend'
alias totp='oathtool --totp -b "$(clip -o)"'
alias tree='tree -C'
alias view='nvim -R'
function bkp {
tarball=~/tmp/backup-$(date +%F).tgz.gpg
tar -cz ~/.ssh ~/notes ~/.pypirc | gpg -c --cipher-algo AES256 > $tarball
for dir in ~/.cache/exile_data \
~/code \
~/dl \
~/islam \
~/.local/share/stardict \
~/pics \
~/video \
$tarball
do
rsync -avh --delete --exclude=.venv "$dir" /mnt/drive/
done
}