conf-99-basic_config_debian/root/.bashrc
Alban VIDAL 452a94b993 Initial commit
Signed-off-by: Alban VIDAL <alban.vidal@zordhak.fr>
2018-05-14 01:18:46 +02:00

44 lines
1.0 KiB
Bash

# If .bashrc.d directory exist, load .conf files
if [ -f ~/.bashrc.d/*.conf ]; then
for bashrc_d_file in ~/.bashrc.d/*.conf ; do
. $bashrc_d_file
done
fi
# alias
export LS_OPTIONS='--color=auto'
alias ls='ls -h'
alias ll='ls -lh'
alias l='ls -lAh'
alias rm='rm -i'
alias cp='cp -i'
alias mv='mv -i'
alias grep='grep --color=auto'
alias fgrep='fgrep --color=auto'
alias egrep='egrep --color=auto'
# Journalctl :
alias jf="journalctl -f"
# Git :
alias ggb="cd /srv/git/basic_config_debian"
alias gs="git status"
alias gd="git diff"
alias ga="git add"
alias gb="git branch"
alias gc="git commit"
alias gca="git commit -v -a"
alias gcam="git commit --amend -v"
alias gp="git push origin master"
alias gl="git log"
alias gll="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit"
# PS1
export PS1="\[\033]0;\u@\h - \w\007\]\[\e[32m\]root@\h\[\e[0m\] [\[\e[0m\]\t\[\e[0m\]][\[\e[34m\]\w\[\e[0m\]]$ "
# History format
HISTTIMEFORMAT='%Y-%m-%d %H:%M:%S '