dotfiles

configuration files
git clone https://pi.duncano.de/git/dotfiles.git
Log | Files | Refs | README

commit 17dfedad540ad331d406cde9a70d22b11c350d0f
parent aa356d0a618937e5ee3b0953b8ec1525e7c6a0e8
Author: Duncaen <mail@duncano.de>
Date:   Thu, 17 Mar 2016 19:04:53 +0100

mksh.d > mkshrc.d

Diffstat:
install.sh | 4++--
mksh.d/00-browser.sh | 4----
mksh.d/00-django.sh | 7-------
mksh.d/00-ssh-agent.sh | 9---------
mkshrc.d/00-browser.sh | 4++++
mkshrc.d/00-django.sh | 7+++++++
mkshrc.d/00-ssh-agent.sh | 9+++++++++
7 files changed, 22 insertions(+), 22 deletions(-)

diff --git a/install.sh b/install.sh @@ -18,8 +18,8 @@ ln -sfv $dotfiles/Xresources /home/$user/.Xresources rm -v /home/$user/.mkshrc ln -sfv $dotfiles/mkshrc /home/$user/.mkshrc -rm -v /home/$user/.mksh.d -ln -sfv $dotfiles/mksh.d /home/$user/.mksh.d +rm -v /home/$user/.mkshrc.d +ln -sfv $dotfiles/mkshrc.d /home/$user/.mkshrc.d rm -v /home/$user/.profile ln -sfv $dotfiles/profile /home/$user/.profile diff --git a/mksh.d/00-browser.sh b/mksh.d/00-browser.sh @@ -1,4 +0,0 @@ -if [ -x /usr/bin/firefox ]; then - BROWSER="/usr/bin/firefox" -fi -export BROWSER diff --git a/mksh.d/00-django.sh b/mksh.d/00-django.sh @@ -1,7 +0,0 @@ -if [ -x /usr/bin/python -o -x /usr/bin/python3 ]; then - alias djrs="python manage.py runserver 0.0.0.0:8000" - alias djcs="python manage.py collectstatic" - alias djm="python manage.py migrate" - alias djmm="python manage.py makemigrations" - alias djcu="python manage.py createsuperuser" -fi diff --git a/mksh.d/00-ssh-agent.sh b/mksh.d/00-ssh-agent.sh @@ -1,9 +0,0 @@ -source_ssh_agent() { - [ -r ~/.cache/ssh-agent-info ] && . ~/.cache/ssh-agent-info -} - -check_ssh_agent() { - test -e "/proc/${SSH_AUTH_SOCK#*.}" -} - -[ ! "$SSH_AUTH_SOCK" ] && source_ssh_agent diff --git a/mkshrc.d/00-browser.sh b/mkshrc.d/00-browser.sh @@ -0,0 +1,4 @@ +if [ -x /usr/bin/firefox ]; then + BROWSER="/usr/bin/firefox" +fi +export BROWSER diff --git a/mkshrc.d/00-django.sh b/mkshrc.d/00-django.sh @@ -0,0 +1,7 @@ +if [ -x /usr/bin/python -o -x /usr/bin/python3 ]; then + alias djrs="python manage.py runserver 0.0.0.0:8000" + alias djcs="python manage.py collectstatic" + alias djm="python manage.py migrate" + alias djmm="python manage.py makemigrations" + alias djcu="python manage.py createsuperuser" +fi diff --git a/mkshrc.d/00-ssh-agent.sh b/mkshrc.d/00-ssh-agent.sh @@ -0,0 +1,9 @@ +source_ssh_agent() { + [ -r ~/.cache/ssh-agent-info ] && . ~/.cache/ssh-agent-info +} + +check_ssh_agent() { + test -e "/proc/${SSH_AUTH_SOCK#*.}" +} + +[ ! "$SSH_AUTH_SOCK" ] && source_ssh_agent