-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
executable file
·47 lines (43 loc) · 1.75 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
#!/bin/bash
stty -ixon # Disable ctrl-s and ctrl-q.
shopt -s autocd #Allows you to cd into directory merely by typing the directory name.
HISTSIZE= HISTFILESIZE= # Infinite history.
#powerline prompt
powerline-daemon -q
POWERLINE_BASH_CONTINUATION=1
POWERLINE_BASH_SELECT=1
. /usr/share/powerline/bindings/bash/powerline.sh
#aliases
alias logout='prompt "Logout?" "kill -9 -1"'
alias mpv="mpv --input-ipc-server=/tmp/mpvsoc$(date +%s)"
alias g="git"
alias x="sxiv -ft *"
alias v="nvim"
alias e="nvim"
alias c="castero"
alias n="newsboat"
alias m="show_art & ncmpcpp -c ~/.config/ncmpcpp/config-art"
alias f="bash ~/.config/vifm/scripts/vifmrun"
alias vifm="bash ~/.config/vifm/scripts/vifmrun"
alias newsboat="newsboat -c ~/.config/newsboat/cache.db -C ~/.config/newsboat/config -u ~/.config/newsboat/url"
alias sdn="shutdown -h now"
alias ls="ls -hN --color=auto --group-directories-first"
alias la="ls -A"
alias grep="grep --color=auto"
alias diff="diff --color=auto"
alias kiwix-start="kiwix-serve --port=8000 ~/Devices/A\:A_Drive/Multimedia/Books/Wikipedia/*.zim"
alias dv="youtube-dl --add-metadata --embed-subs -i -o '[%(uploader)s] %(title)s.%(ext)s'"
alias da="youtube-dl --add-metadata -i -o '%(title)s.%(ext)s' -x -f bestaudio/best"
alias dl="wget --backups"
alias vpu='doas xbps-install -u'
alias vpi='doas xbps-install'
alias vpr='doas xbps-remove -RyfOo'
alias vpq='doas xbps-query --regex -v'
alias bt-start='pactl load-module module-bluetooth-discover; pactl load-module module-bluetooth-policy; doas sv restart bluetoothd'
alias ffmpeg="ffmpeg -hide_banner"
alias file-metadata="for file in *; do mkvpropedit "$file" -s title=$filename; done"
alias cbz="for i in *.zip; do mv "$i" "${i/.zip/.cbz}"; done"
#vi mode
set -o vi
# bind ctrl-l to clear
bind -x '"\C-l":clear'