Instala varias cosas mas
This commit is contained in:
parent
5df45a27bb
commit
09e6f1537f
58
instala.sh
58
instala.sh
|
@ -1,5 +1,4 @@
|
|||
#!/bin/bash
|
||||
|
||||
#
|
||||
# Author:: drymer <drymer [ EN ] autistici.org>
|
||||
# Copyright:: Copyright (c) 2016, drymer
|
||||
|
@ -16,7 +15,6 @@
|
|||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
#
|
||||
|
||||
if [[ $1 = "all" ]]
|
||||
then
|
||||
|
@ -30,7 +28,7 @@ elif [[ $1 = "X" ]]
|
|||
then
|
||||
ln -sf $(pwd)/Xdefaults $HOME/.Xdefaults
|
||||
ln -sf $(pwd)/Xmodmap $HOME/.Xmodmap
|
||||
|
||||
ln -s $(pwd)/compton.conf $HOME/.compton.conf
|
||||
elif [[ $1 = "i3" ]]
|
||||
then
|
||||
ln -sf $(pwd)/i3 $HOME/.i3
|
||||
|
@ -68,18 +66,62 @@ then
|
|||
fi
|
||||
|
||||
# Instalar todos los paquetes de emacs
|
||||
emacs -Q --batch --eval "(ignore-errors (load-file \""$EMACSDIR/"init.el\"))"
|
||||
emacs -Q --batch --eval "(ignore-errors (load-file \""$EMACSDIR/"init-literate.el\"))"
|
||||
emacs -Q --batch --eval '(ignore-errors (load-file "/tmp/powerline.el"))'
|
||||
emacs -Q --batch --eval "(load-file \""$EMACSDIR/"init.el\")"
|
||||
|
||||
# Por algún motivo al compilar desde el-get mete una ruta incorrecta en org-loaddefs.el
|
||||
find $EMACSDIR -name 'org-loaddefs.el' | xargs sed -i "s,org-mode-maint/lisp/,,g"
|
||||
|
||||
# Necesito permiso de superusuario para copiar los scripts capture y demacs en /usr/local/bin/
|
||||
sudo ln -sf $(pwd)/emacs.d/{capture,demacs} /usr/local/bin/
|
||||
elif [[ $1 = "fonts" ]]
|
||||
then
|
||||
FONTDIR="$HOME/.local/share/fonts"
|
||||
mkdir -p $HOME/.local/share/
|
||||
ln -fs $(pwd)/fonts/ $HOME/.local/share/
|
||||
fc-cache -fv $FONTDIR
|
||||
# las cuatro siguientes no se si son necesarias, pero es gratis ponerlas
|
||||
fc-cache -fv $FONTDIR/misc
|
||||
fc-cache -fv $FONTDIR/ohsnap
|
||||
fc-cache -fv $FONTDIR/tewi
|
||||
fc-cache -fv $FONTDIR/terminesspowerline
|
||||
xset +fp $FONTDIR/
|
||||
# las cuatro siguientes no se si son necesarias, pero es gratis ponerlas
|
||||
xset +fp $FONTDIR/misc
|
||||
xset +fp $FONTDIR/ohsnap
|
||||
xset +fp $FONTDIR/tewi
|
||||
xset +fp $FONTDIR/terminesspowerline
|
||||
xset fp rehash
|
||||
elif [[ $1 = "pypi" ]]
|
||||
then
|
||||
sudo pip3 install rope importmagic autopep8 yapf Nikola Nikola[extras] mps-youtube youtube-dl speedtest-cli twine setuptools
|
||||
sudo pip2 install rope importmagic autopep8 yapf virtualenv virtualenvwrapper setuptools
|
||||
echo """
|
||||
export WORKON_HOME=~/.virtualenvs
|
||||
mkdir -p $WORKON_HOME
|
||||
source `which virtualenvwrapper.sh` > /dev/null
|
||||
""" >> $HOME/.bashrc
|
||||
echo """
|
||||
export WORKON_HOME=~/.virtualenvs
|
||||
mkdir -p $WORKON_HOME
|
||||
source `which virtualenvwrapper.sh` > /dev/null
|
||||
""" >> $HOME/.zshrc
|
||||
export WORKON_HOME=~/.virtualenvs
|
||||
source `which virtualenvwrapper.sh`
|
||||
echo "pip install jedi rope importmagic autopep8 yapf" >> $WORKON_HOME/postmkvirtualenv
|
||||
elif [[ $1 = "shell" ]]
|
||||
then
|
||||
if [[ ! -d $HOME/.oh-my-zsh ]]
|
||||
then
|
||||
git clone git://github.com/robbyrussell/oh-my-zsh.git $HOME/.oh-my-zsh
|
||||
chsh -s /bin/zsh
|
||||
fi
|
||||
ln -sf $(pwd)/shell/zsh_custom_themes/* $HOME/.oh-my-zsh/custom/themes/
|
||||
ln -sf $(pwd)/shell/aliases $HOME/.aliases
|
||||
ln -sf $(pwd)/shell/bashrc $HOME/.bashrc
|
||||
ln -sf $(pwd)/shell/zshrc $HOME/.zshrc
|
||||
elif [[ $1 = "" ]]
|
||||
then
|
||||
echo "./instala.sh {all, X, i3, tmux, qutebrowser, emacs}"
|
||||
echo "./instala.sh {all, X, i3, tmux, qutebrowser, emacs, fonts, pypi, shell}"
|
||||
else
|
||||
echo "No existe ese parámetro. Escoge: {all, X, i3, tmux, qutebrowser, emacs}"
|
||||
echo "No existe ese parámetro. Escoge: {all, X, i3, tmux, qutebrowser, emacs, fonts, pypi, shell}"
|
||||
fi
|
||||
|
|
|
@ -11,4 +11,5 @@ alias ec="emacsclient -t"
|
|||
gdp () { git diff `git log --pretty=format:"%h" | head -n$1 | tail -n1`; }
|
||||
alias cal="cal -m"
|
||||
alias nav="qutebrowser --target tab-bg-silent "
|
||||
alias venv="source `which virtualenvwrapper.sh` > /dev/null && workon "
|
||||
alias venv="source `which virtualenvwrapper.sh` > /dev/null && workon "
|
||||
alias kpcli="cd ~/Documentos; kpcli"
|
||||
|
|
Loading…
Reference in New Issue