bash profile

PHOTO EMBED

Fri Jul 14 2023 13:24:46 GMT+0000 (Coordinated Universal Time)

Saved by @vs #bash

# ~/.bash_aliases:
alias ga='git add -A'
alias gb='git branch'
alias gbd='git branch --delete '
alias gc='git commit --message'
alias gco='git checkout'
alias gcob='git checkout -b'
alias gcom='git checkout master'
alias gcomn='git checkout main'
alias gcv='git commit --no-verify --message'
alias gl='git log --oneline'
alias gp='git pull'
alias gps='git push'
alias gs='git status'
alias gst='git stash'
alias gsta='git stash apply'

#--------------------------------------------------------
# ~/.bashrc:
# Source global definitions
if [ -f /etc/bashrc ]; then
        . /etc/bashrc
fi

# User specific aliases and functions
umask 027
export PS1="\u@\h $ "
[ -d "$HOME/bin" ] && [[ -z $(echo $PATH | grep "$HOME/bin") ]] && export PATH=$PATH:$HOME/bin
export HISTTIMEFORMAT="[%d-%b-%Y %R]"
export HISTFILE=~/.sh_history
# append to history, don't overwrite it
shopt -s histappend
export EDITOR=nano
if [ -f ~/.bash_aliases ]; then
        . ~/.bash_aliases
fi
content_copyCOPY

save files in your home folder. need to source it to make it work.