From 71fe80ffd03bc3fdd7789c8cd9391d607e289eef Mon Sep 17 00:00:00 2001 From: Alexander Hosking Date: Tue, 28 Mar 2017 17:01:03 -0400 Subject: [PATCH] Breaking up env vars and adding logout alias --- install.sh | 4 +++- system/.alias | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/install.sh b/install.sh index 2c81ba9..6e7b486 100644 --- a/install.sh +++ b/install.sh @@ -1,8 +1,9 @@ #!/bin/bash DOTFILES_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" +export DOTFILES_DIR EXTRA_DIR="$HOME/.extra" -export DOTFILES_DIR EXTRA_DIR +export EXTRA_DIR # Update dotfiles itself first @@ -14,6 +15,7 @@ mkdir -p ~/.vim/{backup_files,swap_files,undo_files} git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim # Bunch of symlinks +ln -sfv ~/dotfiles ~/.dotfiles #ln -sfv "$DOTFILES_DIR/run/.bash_profile" ~ ln -sfv "$DOTFILES_DIR/run/.bashrc" ~ ln -sfv "$DOTFILES_DIR/git/.gitconfig" ~ diff --git a/system/.alias b/system/.alias index 32bab81..a028094 100644 --- a/system/.alias +++ b/system/.alias @@ -6,6 +6,9 @@ alias ..="cd .." alias ...="cd ../.." alias ....="cd ../../.." +### Logout! +alias logout='sudo pkill -u $USER' + ### Vagrant alias vu='vagrant up --provision' alias vp='vagrant provision'