mirror of
https://github.com/harish2704/dotFiles.git
synced 2026-10-26 04:31:07 +00:00
102 lines
2.5 KiB
Bash
102 lines
2.5 KiB
Bash
# .bashrc
|
|
|
|
# Source global definitions
|
|
if [ -f /etc/bashrc ]; then
|
|
. /etc/bashrc
|
|
fi
|
|
|
|
|
|
if [[ -f /usr/share/fzf/shell/key-bindings.bash ]]; then
|
|
. /usr/share/fzf/shell/key-bindings.bash
|
|
fi
|
|
|
|
if [[ -f $HOME/.local/Apps/daily-utils/hari-autocomplete.sh ]]; then
|
|
. $HOME/.local/Apps/daily-utils/hari-autocomplete.sh
|
|
fi
|
|
|
|
# C_ORANGERED1="\[\e[38;5;202m\]"
|
|
# C_DARKCYAN="\[\e[38;5;36m\]"
|
|
# C_YELLOW="\[\e[38;5;11m\]"
|
|
# C_CYAN1="\[\e[38;5;51m\]"
|
|
# C_RED="\[\033[38;5;9m\]"
|
|
|
|
NO_FORMAT="\[\e[0m\]"
|
|
F_BOLD="\[\e[1m\]"
|
|
C_YELLOW1="\[\e[38;5;226m\]"
|
|
C_AQUAMARINE1="\[\e[38;5;86m\]"
|
|
PS1="${F_BOLD}${C_AQUAMARINE1}\u@\h${C_YELLOW1} \w \\\$${NO_FORMAT} "
|
|
|
|
# [ -s "$NVM_DIR/bash_completion" ] && \. "$NVM_DIR/bash_completion" # This loads nvm bash_completion
|
|
|
|
export DOCKER_HOST=unix:///run/user/$UID/podman/podman.sock
|
|
|
|
export EDITOR=vim
|
|
export HISTCONTROL=ignoredups
|
|
export HISTSIZE=11000
|
|
export HISTFILESIZE=110000
|
|
|
|
alias ip='ip --color=auto'
|
|
|
|
export NVM_DIR="$HOME/.nvm"
|
|
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
|
|
|
|
|
|
#export PYENV_ROOT="$HOME/.pyenv"
|
|
#[[ -d $PYENV_ROOT/bin ]] && export PATH="$PYENV_ROOT/bin:$PATH"
|
|
#eval "$(pyenv init -)"
|
|
|
|
|
|
# bun
|
|
export BUN_INSTALL="$HOME/.bun"
|
|
export PATH="$BUN_INSTALL/bin:$PATH"
|
|
. "$HOME/.deno/env"
|
|
source $HOME/.local/share/bash-completion/completions/deno.bash
|
|
eval "$(~/.local/bin/mise activate bash)"
|
|
|
|
# PATH="$HOME/perl5/bin${PATH:+:${PATH}}"; export PATH;
|
|
# PERL5LIB="$HOME/perl5/lib/perl5${PERL5LIB:+:${PERL5LIB}}"; export PERL5LIB;
|
|
# PERL_LOCAL_LIB_ROOT="$HOME/perl5${PERL_LOCAL_LIB_ROOT:+:${PERL_LOCAL_LIB_ROOT}}"; export PERL_LOCAL_LIB_ROOT;
|
|
# PERL_MB_OPT="--install_base \"$HOME/perl5\""; export PERL_MB_OPT;
|
|
# PERL_MM_OPT="INSTALL_BASE=$HOME/perl5"; export PERL_MM_OPT;
|
|
|
|
mycp(){
|
|
mkdir -p "$(dirname "$2" )";
|
|
cp "$1" "$2";
|
|
}
|
|
|
|
eval "$(/home/linuxbrew/.linuxbrew/bin/brew shellenv bash)"
|
|
|
|
export YDOTOOL_SOCKET="$HOME/.ydotool_socket"
|
|
|
|
alias gst='git status'
|
|
|
|
alias glg='git log --stat'
|
|
alias glo='git log --oneline --decorate'
|
|
|
|
alias gl='git pull'
|
|
|
|
alias gc='git commit -v'
|
|
alias gc!='git commit -v --amend'
|
|
|
|
alias gb='git branch'
|
|
alias gcb='git checkout -b'
|
|
alias gbD='git branch -D'
|
|
|
|
alias gcm='git checkout master'
|
|
alias gco='git checkout'
|
|
|
|
alias grb='git rebase'
|
|
alias grbm='git rebase master'
|
|
alias grbi='git rebase -i'
|
|
alias grbc='git rebase --continue'
|
|
|
|
alias gstaa='git stash apply'
|
|
alias gstl='git stash list'
|
|
alias gstall='git stash --all'
|
|
|
|
alias grbc='git rebase --continue'
|
|
alias grbi='git rebase -i'
|
|
|
|
alias gsta='git stash push'
|
|
alias gstaa='git stash apply'
|