-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
32 lines (24 loc) · 793 Bytes
/
.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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
fastfetch
prim=$(tput setaf 1)
sec=$(tput setaf 3)
bold=$(tput bold)
reset=$(tput sgr0)
if [ -n "$SSH_CLIENT" ] || [ -n "$SSH_TTY" ]; then
PS1="\[$prim\](SSH)\[$bold\]\h\[$reset\]:\[$sec$bold\]\w\[$reset\]\$ "
else
PS1="\[$prim$bold\]\h\[$reset\]:\[$sec$bold\]\w\[$reset\]\$ "
fi
alias ls='ls --color=auto'
alias grep='grep --color=auto'
alias vim='nvim'
alias unharden="sudo sysctl kernel.unprivileged_userns_clone=1"
alias copy="xclip -selection clipboard"
alias nvimconfig="nvim ~/.config/nvim"
alias bashrc="nvim ~/.bashrc"
alias gitupdate="git fetch --all && git reset --hard origin/main && git submodule update --recursive --init"
export PATH=$(gem environment user_gemhome)/bin:$PATH