-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshellrc
More file actions
31 lines (22 loc) · 690 Bytes
/
shellrc
File metadata and controls
31 lines (22 loc) · 690 Bytes
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
# Shellrc
clear
export VISUAL=bat
export EDITOR=nvim
#welcome command
fastfetch
### "bat" as manpager
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
# Use aliases
source $HOME/.aliasrc
#Use neovim for vim i²f present.
[ -x "$(command -v nvim)" ] && alias vim="nvim" vimdiff="nvim -d"
# Use $XINITRC variable if file exists.
[ -f "$XINITRC" ] && alias startx="startx $XINITRC"
# sudo not required for some system commands
for command in mount umount sv pacman updatedb su shutdown poweroff reboot ; do
alias $command="{{run}} $command"
done; unset command
# Add stuff to PATH
export PATH=$PATH:~/.cargo/bin:~/.local/bin:/var/lib/snapd/snap/bin
#Thefuck
eval $(thefuck --alias)