install.sh fix and improvement

This commit is contained in:
Bachir Soussi Chiadmi
2016-06-11 12:40:14 +02:00
parent 541ce1af6c
commit 5426113a1e
3 changed files with 18 additions and 30 deletions
-21
View File
@@ -11,8 +11,6 @@ if [ -f /etc/bash_completion ]; then
. /etc/bash_completion
fi
PATH="$(ruby -e 'print Gem.user_dir')/bin:$PATH"
export EDITOR=vim
export TERM=xterm-256color
@@ -20,13 +18,9 @@ export TERM=xterm-256color
complete -cf sudo
complete -cf man
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
# https://wiki.archlinux.org/index.php/Bash#Auto_.22cd.22_when_entering_just_a_path
shopt -s autocd
# Only load Liquid Prompt in interactive shells, not from a script or from scp
[[ $- = *i* ]] && source ~/.liquidprompt/liquidprompt
@@ -39,25 +33,10 @@ alias grep='grep --color=tty -d skip'
alias cp="cp -i" # confirm before overwriting something
alias df="df -kTh" # human-readable sizes
alias free='free -m' # show sizes in MB
alias sys='sudo systemctl'
alias mysqlr='mysql -u root -p'
alias ggraph="git log --graph --abbrev-commit --decorate=no --format=format:'%C(bold yellow)%ai%C(reset)%C(yellow)(%ar)%C(reset)%C(auto)%+d%C(reset)%n''%C(dim white)%an%C(reset)%n''%C(bold white)%B%C(reset)%C(blue)%H%C(reset)%n' --all"
starthttpd ()
{
sudo systemctl start httpd
sudo systemctl start mysqld
}
if [ -f ~/.private-aliases ]; then
. ~/.private-aliases
fi