-
Notifications
You must be signed in to change notification settings - Fork 0
/
bashrc
86 lines (72 loc) · 2.13 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
# ____ ___ _____ __ __ #
# / __ ) / | / ___/ / / / / #
# / __ |/ /| | \__ \ / /_/ / #
# / /_/ // ___ | ___/ // __ / #
# /_____//_/ |_|/____//_/ /_/ #
# OPTIONS
## Exports
export TERM="alacritty"
export VISUAL="emacsclient -c -a emacs"
export EDITOR="emacsclient -t -a """
export ALTERNATE_EDITOR="vim"
export MANPAGER="less"
## Options
bind "set colored-stats on"
bind "set colored-completion-prefix on"
bind "set completion-ignore-case on"
bind "set completion-map-case on"
bind "set show-all-if-ambiguous on"
bind "set mark-symlinked-directories on"
complete -cf sudo
## Keybindings
set -o vi
bind Space:magic-space
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
## Shopt
shopt -s autocd
shopt -s cdspell
shopt -s histappend
shopt -s cmdhist
## History
export PROMPT_COMMAND="history -a"
export HISTSIZE=2000
export HISTFILESIZE=2000
export HISTCONTROL=erasedups:ignoredups:ignorespace
## Prompt
PS1="\[\033[31m\]\w >\[\e[m\] "
## Fetch
fastfetch
# ALIASES
## arch - pacman and paru
alias pi="sudo pacman -S"
alias pr="sudo pacman -Rns"
alias pup="sudo pacman -Syu"
alias pc="sudo pacman -Rns $(pacman -Qtdq)"
alias pkglist="sudo pacman -Qqe > ~/Dokumenty/packages.txt"
alias yi="paru -S"
alias yup="paru"
## Commands
alias ..="cd .."
alias cp="cp -i"
alias df="df -hl --exclude-type=tmpfs --exclude-type=devtmpfs"
alias fd="fd --hidden --ignore-case"
alias grep="rg"
alias ls="ls -lA --color=always --group-directories-first"
alias mkd="mkdir -pv"
alias mv="mv -i"
alias rm="trash -vi"
# Backlight
alias bt="bpytop"
alias gc="git clone"
alias merge="xrdb -merge ~/.Xresources"
alias ff="fastfetch"
alias ffnc="fastfetch --config examples/6.jsonc"
alias nvt="nvtop"
## Emacs
alias em="/usr/bin/emacs -nw"
alias emacsd="/usr/bin/emacs --daemon &"
alias kemacs="killall emacs"
## Reboot
alias reboot="sudo reboot"
alias shutdown="sudo shutdown now"