2019-08-17 03:06:22 +00:00
|
|
|
# ~/.bashrc: executed by bash(1) for non-login shells.
|
|
|
|
|
|
|
|
# --------------------------------
|
|
|
|
# Shell RC
|
|
|
|
# --------------------------------
|
|
|
|
#PS1='${debian_chroot:+($debian_chroot)}\[\033[01;41m\]$(hostname)\[\033[00m\]\[\033[01;34m\] \w\[\033[00m\] \$ '
|
|
|
|
PS1='${debian_chroot:+($debian_chroot)}\e[1;31m$(hostname) \e[0m\e[1;94m\w\e[0m\e[0;35m $(__git_ps1 " %s")\e[0m \e[1;31m \e[0m'
|
|
|
|
|
|
|
|
#
|
|
|
|
# Variables
|
|
|
|
#
|
|
|
|
export EDITOR=vim
|
|
|
|
export PATH=~/bin:$PATH
|
|
|
|
|
|
|
|
#
|
|
|
|
# Aliases
|
|
|
|
#
|
|
|
|
alias ls='ls -al --color'
|
|
|
|
alias q=exit
|
|
|
|
alias a=clear
|
|
|
|
alias h=history
|
|
|
|
alias e=$EDITOR
|
|
|
|
|
|
|
|
#
|
|
|
|
# Functions
|
|
|
|
#
|
|
|
|
function myvim () {
|
|
|
|
gvim $1 >& /dev/null &
|
|
|
|
disown %1
|
|
|
|
}
|
|
|
|
|
|
|
|
function hgrep () {
|
|
|
|
history | grep $1
|
|
|
|
}
|
|
|
|
|
|
|
|
function pgrep () {
|
|
|
|
ps aux | grep $1
|
|
|
|
}
|
2020-04-19 20:19:47 +00:00
|
|
|
|
|
|
|
function u2d () {
|
|
|
|
apt update && apt full-upgrade -y && apt autoremove -y
|
|
|
|
}
|