-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
31 lines (26 loc) · 786 Bytes
/
dot_bashrc
File metadata and controls
31 lines (26 loc) · 786 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
31
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias sc='systemctl'
alias tm='tmux new-session -A -s main'
alias e='gnome-text-editor'
alias lsblk='lsblk -o NAME,LABEL,SIZE,TYPE,MOUNTPOINTS,UUID'
if [ "$XDG_SESSION_TYPE" = "wayland" ]; then
alias code='code --ozone-platform=wayland'
fi
if type nvim >/dev/null 2>&1; then
alias vi='nvim'
fi
export PF_INFO="ascii title os host kernel uptime memory"
export EDITOR="vim"
## Show system info
type pfetch >/dev/null 2>&1 && pfetch
## Configure custom prompt
if type starship >/dev/null 2>&1; then
eval "$(starship init bash)"
else
source ~/.bash_prompt
fi
## Better cd command
type zoxide >/dev/null 2>&1 && eval "$(zoxide init --cmd cd bash)"