-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdot_bashrc
More file actions
58 lines (43 loc) · 1.03 KB
/
Copy pathdot_bashrc
File metadata and controls
58 lines (43 loc) · 1.03 KB
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
58
[ -f ~/.fzf.bash ] && source ~/.fzf.bash
########## PATH & ENVIRONMENT ##########
export PATH="$HOME/bin:$HOME/.local/bin:/usr/local/bin:$PATH"
export EDITOR="code --wait"
export VISUAL="code --wait"
########## HISTORY ##########
export HISTCONTROL=ignoredups:erasedups
export HISTSIZE=50000
export HISTFILESIZE=50000
shopt -s histappend
PROMPT_COMMAND="history -a; $PROMPT_COMMAND"
########## ALIASES ##########
# Navigation
alias ll='ls -lah'
alias la='ls -A'
alias l='ls -1'
alias ..='cd ..'
alias ...='cd ../..'
# Git
alias gs='git status'
alias ga='git add'
alias gc='git commit'
alias gp='git push'
alias gl='git pull'
# tmux
alias t="tmux"
alias ta="tmux attach -t"
alias tn="tmux new -s"
alias tl="tmux ls"
alias tk="tmux kill-session -t"
# neovim
alias v="nvim"
alias vi="nvim"
alias vim="nvim"
# Claude Code
alias cc='claude --dangerously-skip-permissions'
########## PROMPT ##########
PS1='\u@\h:\w\$ '
########## TOOL INIT ##########
# Zoxide (smarter cd)
if command -v zoxide >/dev/null 2>&1; then
eval "$(zoxide init bash)"
fi