-
Notifications
You must be signed in to change notification settings - Fork 1
/
.bashrc
74 lines (68 loc) · 1.64 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
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
export EDITOR=nvim
export DOTFILES="~/dotfiles/home"
path+=$HOME/.cargo/bin
# Aliases
alias ga="git add"
alias gb="git branch"
alias gca="git commit -a"
alias gcam="git commit -am"
alias gc="git commit"
alias gcm="git commit -m"
alias gd="git diff"
alias gds="git diff --staged"
alias glg="git log --all --oneline --graph --decorate"
alias gpl="git pull --prune"
alias gps="git push"
alias gs="git status -sb"
alias gm="git merge"
alias hx="helix"
alias ls="lsd"
alias l="ls -a"
alias lla="ls -la"
alias lt="ls --tree"
alias lg="lazygit"
alias cat="bat"
alias cd="z"
alias grep="rg"
alias c="clear"
alias du="dust"
alias find="fd"
alias v="nvim"
alias vi="nvim"
alias vim="nvim"
alias zshconf="nvim ~/.zshrc"
alias tmuxconf="nvim ~/.tmux.conf"
alias nvimconf="cd ~/.config/nvim/ && nvim"
alias hxconf="helix ~/.config/helix/config.toml"
alias tn="tmux new -s $(basename $PWD)"
alias home="cd ~"
alias px="pnpm dlx"
alias pn="pnpm"
nvimone() {
NVIM_APPNAME="nvimone" nvim
}
normvim() {
NVIM_APPNAME="normvim" nvim
}
eval "$(starship init bash)"
eval "$(zoxide init bash)"
# eval "$(navi widget bash)"
#nvm
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
#nvm
#
#
# pnpm
export PNPM_HOME="/home/artifex/.local/share/pnpm"
case ":$PATH:" in
*":$PNPM_HOME:"*) ;;
*) export PATH="$PNPM_HOME:$PATH" ;;
esac
# pnpm end
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"
# Add JBang to environment
alias j!=jbang
export PATH="$HOME/.jbang/bin:$PATH"