-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbashrc
More file actions
69 lines (55 loc) · 2.69 KB
/
bashrc
File metadata and controls
69 lines (55 loc) · 2.69 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
###
# ~/.bashrc
#
[[ $- != *i* ]] && return
PS1='[\u@\h \W]\$ '
# OS - stuff
alias generatePackageList='pacman -Qe | awk "{print $1}" > package_list.txt'
alias installFromList='yay --sudoloop -S - < package_list.txt'
alias importkey='gpg --keyserver pool.sks-keyservers.net --recv-keys'
alias yay='yay --sudoloop'
alias scan='scanimage --format=png --output-file scanout.png --progress'
alias sync='sync & watch -n 1 grep -e Dirty: /proc/meminfo'
alias syncstate='watch -d grep -e Dirty: -e Writeback: /proc/meminfo'
alias trash='trash-put'
alias gofind='sudo find / -name'
alias ls='ls --color=auto'
alias logout='qdbus org.kde.ksmserver /KSMServer logout 0 0 0'
alias pacman-log='grep -i installed /var/log/pacman.log'
# exported scripts
alias lsec='sudo ~/permanent/private/bash/.lsec'
# personal
alias xampp='pkexec xampp-manager'
alias win='sudo vboxmanage startvm "win-main" && exit'
alias mine='sudo ethminer -P stratum://0x285187DE0E1067d1e25874691E40bE4A1d1980EA@eu1.ethermine.org:4444 -v 5 & while true; do sleep 1h; echo $(( 1 + $(cat ~/.mining-time) )) > ~/.mining-time; done'
alias cat-recursively='find . -name "$1" -exec cat {} +'
alias dunst-history='dunstctl history-pop'
alias ytdl='youtube-dl -f 'bestvideo[ext=mp4]+bestaudio[ext=m4a]/mp4''
alias mpa='mpv --quiet --volume=50 --no-video --force-seekable=yes'
alias mpv='mpv --no-osc --geometry=900'
alias notes='micro ~/permanent/private/data/notes-beta'
alias aquarium='mpv --volume=0 --no-osc --fs --video-zoom=0.115 https://www.youtube.com/watch?v=9Ej-0VRWmI8&t=212s'
alias mpv-zoom='mpv --no-osc --video-zoom=0.115'
alias r='ranger --choosedir=$HOME/.rangerdir; LASTDIR=`cat $HOME/.rangerdir`; cd "$LASTDIR"'
alias m='micro $@'
alias last-journal='sudo journalctl -b-1'
convertpdf() {
for file in "$@"; do $(convert "$file" "${file:0:${#file}-4}.pdf"); done;
}
convertmp3() {
for file in "$@"; do $(ffmpeg -i "$file" "${file:0:${#file}-4}.mp3"); done;
}
# IOS
alias ios-pair='idevicepair pair'
alias ios-mount='ifuse -o allow_other -o nonempty ~/IphoneMount'
alias ios-umount='sudo umount ~/IphoneMount'
alias ios-umount-force='sudo umount -l ~/IphoneMount'
alias ios-status='ls -a ~/IphoneMount'
# Windscribe
alias w='windscribe'
alias wstart='sudo systemctl start windscribe'
alias startw='sudo systemctl start windscribe && windscribe connect best'
export PATH="~/permanent/public/path-scripts/:$PATH"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion