-
Notifications
You must be signed in to change notification settings - Fork 0
/
.bashrc
57 lines (48 loc) · 1.5 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
#
# ~/.bashrc
#
# If not running interactively, don't do anything
[[ $- != *i* ]] && return
export TERM=xterm-256color
export EDITOR="kak"
export FZF_DEFAULT_OPTS="--reverse --border=rounded"
export TERMINAL=kitty
# just put all our scripts in our path instead of symlinking every new script we make...
# export PATH=$HOME/dot/scripts:$PATH
# export PATH=$HOME/.local/bin:$PATH
git_branch() {
br=$(git branch 2> /dev/null | grep "* " | sed s/*\ //)
if [ $br ]; then
echo " $br"
fi
}
# NOTE customized weaponizations break TRAMP connections if we're not careful...
# TRAMP does regex matches for "typical" prompts it expects to get back from the server.
# PS1='[\u@\h \W]\$ '
# PS1='\e[1m\e[36m\W \e[35m>\e[0m '
PS1='\e[1m\e[36m\W\e[34m$(git_branch) \e[35m>\e[0m '
alias ls='ls --color=auto'
alias c="clear"
alias gs="git status"
alias gd="git diff"
alias gds="git diff --staged"
alias gc="git checkout"
alias gb="git branch"
alias gcb="git checkout -b"
alias gcm="git commit -m"
alias ga="git add ."
alias gl="git log --graph --decorate"
alias gf="git fetch --all"
alias gpa="git push --all"
alias grep="grep --color"
alias ll="ls -lAh"
alias la="ls -A"
alias duls="ls -A | xargs du -sh"
alias em="emacsclient -c -a emacs"
alias lg="lazygit"
export NVM_DIR="$HOME/.nvm"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
[ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
PATH=$HOME/dot/scripts:$PATH
PATH=$HOME/.local/bin:$PATH
pfetch