-
Notifications
You must be signed in to change notification settings - Fork 0
/
.customize_profile
36 lines (30 loc) · 983 Bytes
/
.customize_profile
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
# extended .bashrc file
# this should be sourced from .bashrc
# Automatically cd into directories by executing their name
shopt -s autocd
#######################
# Aliases
#######################
# lsd due to objectively support for Windows and pretty icons
if [ -x "$(command -v lsd)" ]; then
alias l='lsd --icon=never'
alias ls='lsd'
fi
# misc
if [ -x "$(command -v bat)" ]; then
alias cat='bat'
elif [ -x "$(command -v batcat)" ]; then
alias cat='batcat'
fi
#########################
# environment variables
#########################
export EDITOR=nvim
# check for presence of /opt/nvim-linux64/bin/nvim and add to PATH
# I'd recommend using pacstall for latest nvim for debian
[ -x /opt/nvim-linux64/bin/nvim ] && export PATH=$PATH:/opt/nvim-linux64/bin
#########################
# Misc
#########################
# initialize starship prompt if installed
[ -f ~/.config/starship.toml ] && command -v starship >/dev/null 2>&1 && eval "$(starship init bash)"