cleanup
This commit is contained in:
parent
e57349c99f
commit
953419baf9
5
mybashrc
5
mybashrc
|
@ -368,6 +368,10 @@ _PPA_INSTALL() {
|
|||
fi
|
||||
}
|
||||
|
||||
_INSTALL_NANORC() {
|
||||
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -qO- | sh
|
||||
}
|
||||
|
||||
# enable color support of ls and also add handy aliases
|
||||
# some more ls aliases
|
||||
#alias wp='/usr/bin/wp --allow-root'
|
||||
|
@ -423,3 +427,4 @@ alias vdir='vdir --color=auto'
|
|||
alias wo-virtualenv=_PYTHON_VIRTUALENV
|
||||
alias wp-fix-perms=_WP_PERMISSIONS
|
||||
alias IPPA=_PPA_INSTALL
|
||||
alias install-nanorc=_INSTALL_NANORC
|
||||
|
|
13
setup.sh
13
setup.sh
|
@ -2,7 +2,7 @@
|
|||
|
||||
# if run as root
|
||||
[ "$(id -u)" = "0" ] && {
|
||||
apt-get update
|
||||
apt-get update -qq
|
||||
# check if git & curl are installed
|
||||
[ -z "$(command -v git)" ] && { apt-get -y install git; } >> /dev/null 2>&1
|
||||
[ -z "$(command -v curl)" ] && { apt-get -y install curl; } >> /dev/null 2>&1
|
||||
|
@ -15,12 +15,6 @@
|
|||
wget -O /usr/local/bin/cht.sh https://cht.sh/:cht.sh
|
||||
chmod +x /usr/local/bin/cht.sh
|
||||
}
|
||||
codename=$(lsb_release -sc)
|
||||
# install nano ppa on ubuntu xenial
|
||||
if [ ! -f "/etc/apt/sources.list.d/jonathonf-ubuntu-backports-${codename}.list" ]; then
|
||||
add-apt-repository -u ppa:jonathonf/backports -y
|
||||
fi
|
||||
|
||||
# check for my ssh keys comment
|
||||
[ -f $HOME/.ssh/authorized_keys ] && {
|
||||
check_ecc=$(grep "virtubox.net_ecc" $HOME/.ssh/authorized_keys*)
|
||||
|
@ -70,8 +64,3 @@ else
|
|||
wget -O $HOME/.bashrc https://git.virtubox.net/virtubox/ubuntu-nginx-web-server/raw/branch/master/var/www/.bashrc
|
||||
echo ". $HOME/.mybashrc/mybashrc" >> "$HOME/.bashrc"
|
||||
fi
|
||||
|
||||
if [ ! -d $HOME/.nanorc ]; then
|
||||
wget https://raw.githubusercontent.com/scopatz/nanorc/master/install.sh -qO- | sh
|
||||
#sed -i 's/include "~\/.nano\/etc-hosts.nanorc"/#include "~\/.nano\/etc-hosts.nanorc"/' $HOME/.nanorc
|
||||
fi
|
||||
|
|
Loading…
Reference in New Issue