Remove bash stuff
This commit is contained in:
parent
3c601a4447
commit
870975d4a7
3 changed files with 0 additions and 68 deletions
65
.bashrc
65
.bashrc
|
@ -1,65 +0,0 @@
|
|||
# [----------------------------------------------------------------------------]
|
||||
# [----------------------------- PROMPT ---------------------------------------]
|
||||
# [----------------------------------------------------------------------------]
|
||||
hostn=$(hostname -s)
|
||||
usern=$(whoami)
|
||||
|
||||
function prompt {
|
||||
ctime=$(date +%T)
|
||||
prmpt="[${PWD}][${ctime}]"
|
||||
let FILLS=${COLUMNS}-${#prmpt}
|
||||
LINE=""
|
||||
|
||||
if [[ "$PWD" =~ "/home/$usern" ]]; then
|
||||
let FILLS=$FILLS+5+${#usern}
|
||||
fi
|
||||
|
||||
for (( f=0; f<$FILLS; f++ ))
|
||||
do
|
||||
LINE=$LINE"\e[0;34;44m-"
|
||||
done
|
||||
|
||||
PS1="\e[44;1;37m[\t] \w ${LINE}\e[0m\n"
|
||||
if [ "$SSH_CONNECTION" == "" ]; then
|
||||
PS1="$PS1\[\e[1;32;40m\][\u@\h]"
|
||||
else
|
||||
PS1="$PS1\[\e[1;33;40m\][\u@\h]"
|
||||
fi
|
||||
PS1="$PS1\$(if [ \$? = 0 ]; then echo -e \"\$\"; else echo -e \"\[\e[0;31m\]\$\"; fi)\[\e[0m\] "
|
||||
}
|
||||
PROMPT_COMMAND=prompt
|
||||
|
||||
# [----------------------------------------------------------------------------]
|
||||
# [----------------------------- ALIAS ---------------------------------------]
|
||||
# [----------------------------------------------------------------------------]
|
||||
|
||||
# Common parameters
|
||||
alias ls='ls -v --color=auto'
|
||||
alias ll='ls -lavh'
|
||||
alias grep='grep --color'
|
||||
|
||||
alias sudo='sudo env PATH=$PATH'
|
||||
|
||||
alias ..='cd ..'
|
||||
alias ...='cd ../..'
|
||||
alias ....='cd ../../..'
|
||||
|
||||
# for git
|
||||
alias get='git'
|
||||
alias ga='git add'
|
||||
alias gaa='git add .'
|
||||
alias gs='git status'
|
||||
alias gl='git log'
|
||||
alias gcm='git commit -m'
|
||||
alias gcf='git commit -F'
|
||||
|
||||
# [----------------------------------------------------------------------------]
|
||||
# [------------------------------ OTHER ---------------------------------------]
|
||||
# [----------------------------------------------------------------------------]
|
||||
# Case insensitive matching
|
||||
shopt -s nocaseglob
|
||||
|
||||
# [----------------------------------------------------------------------------]
|
||||
# [------------------------------ PATH ----------------------------------------]
|
||||
# [----------------------------------------------------------------------------]
|
||||
PATH=$PATH:$HOME/bin
|
2
.inputrc
2
.inputrc
|
@ -1,2 +0,0 @@
|
|||
set completion-ignore-case On
|
||||
TAB: menu-complete
|
1
.profile
1
.profile
|
@ -1 +0,0 @@
|
|||
source ~/.bashrc
|
Loading…
Reference in a new issue