dotfiles

Yes, my $HOME has a git repo now :(

git clone git://git.shimmy1996.com/dotfiles.git
commit 562d0789723bc2dd7d1a0d0f7d3d7d7025aac0ad
parent 7d719d37954924ddc96415af2bf57265e2146607
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date:   Sun, 20 Jan 2019 19:24:01 -0500

Add configs for bash.

Diffstat:
A.bash_profile | 4++++
A.bashrc | 12++++++++++++
M.gitignore | 8+++++---
M.profile | 8+++++---
4 files changed, 26 insertions(+), 6 deletions(-)
diff --git a/.bash_profile b/.bash_profile
@@ -0,0 +1,4 @@
+#!/usr/bin/env bash
+
+./.profile
+[[ -f ~/.bashrc ]] && . ~/.bashrc
diff --git a/.bashrc b/.bashrc
@@ -0,0 +1,12 @@
+#!/usr/bin/env bash
+
+# If not running interactively, don't do anything
+[[ $- != *i* ]] && return
+
+# Alias
+alias ls='ls --color=auto'
+alias ll='ls -l'
+alias la='ll -a'
+
+# Prompt
+PS1='\[$(tput setaf 8)\][\t] \[$(tput setaf 15)\]\u@\h: \[$(tput setaf 4)\]\w \n\[$(tput setaf 2)\]\$\[$(tput sgr0)\] '
diff --git a/.gitignore b/.gitignore
@@ -33,6 +33,11 @@
 !.config/systemd/user/emacs.service.d
 !.config/systemd/user/emacs.service.d/override.conf
 !.config/systemd/user/greenclip.service
+!.profile
+!.bash_profile
+!.bashrc
+!.xprofile
+!.zprofile
 
 # Scripts and more.
 !.local
@@ -43,6 +48,3 @@
 !.local/share/applications
 !.local/share/applications/emacs.desktop
 !.local/share/applications/pass.desktop
-!.profile
-!.xprofile
-!.zprofile
diff --git a/.profile b/.profile
@@ -1,10 +1,12 @@
+#!/usr/bin/env bash
+
 # Keyboard settings.
 if [[ `hostname` == "bluebear" ]]; then
     export XKB_DEFAULT_OPTIONS=ctrl:swapcaps
 fi
 
-# Adds `~/.scripts` and all subdirectories to $PATH
-export PATH="$PATH:$(du "$HOME/.local/bin/" | cut -f2 | tr '\n' ':')"
+# Add `~/.local/bin/` to path.
+export PATH="$PATH:$(echo "$HOME/.local/bin/" | cut -f2 | tr '\n' ':')"
 
 # Fcitx fixes
 export XMODIFIERS=@im=fcitx
@@ -13,7 +15,7 @@ export GTK_IM_MODULE=fcitx
 
 # Preferred applications
 export BROWSER="firefox"
-export EDITOR="nvim"
+export EDITOR="emacsclient"
 export VISUAL="emacsclient"
 
 # Auto start tbsm after login on first two VTs.