From f805eb8f2469770a0ccd830a65ede391c1e0e5bb Mon Sep 17 00:00:00 2001 From: Kevin Mok Date: Sun, 15 Oct 2017 03:51:05 -0400 Subject: [PATCH] Added reset file and more aliases. --- .bash_aliases | 5 +++++ .gitignore | 1 - set-from-git.sh | 9 +++++++++ 3 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 set-from-git.sh diff --git a/.bash_aliases b/.bash_aliases index 14f01c8..9315aac 100644 --- a/.bash_aliases +++ b/.bash_aliases @@ -10,6 +10,7 @@ alias slp="systemctl suspend" alias cdr="cd ~/../../" alias cdd="cd ~/Downloads" alias 221="cd ~/Documents/School/221" +alias 221lt="okular ~/Downloads/Textbook.pdf" alias p1="cd ~/258/258-labs-self/l5/p1" alias l5="cd ~/258/258-labs-self/l5" @@ -27,6 +28,10 @@ alias gps="git push" alias vig="vi .gitignore" alias ga="git add *" alias gai="git add .gitignore" +alias gd="git diff --cached" +gc(){ + git commit -m "$1" +} # redshift rs(){ diff --git a/.gitignore b/.gitignore index 8653204..e69de29 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +0,0 @@ -rm-symlink.sh diff --git a/set-from-git.sh b/set-from-git.sh new file mode 100644 index 0000000..c5e0837 --- /dev/null +++ b/set-from-git.sh @@ -0,0 +1,9 @@ +files=".bash_aliases .bashrc .inputrc .vimrc" +dir=~/my-dotfiles + +# mkdir $dir + +for file in $files; do + rm ~/$file + ln -s $dir/$file ~/$file +done