From e8a229630ab8a70d5d72a754d29cf4e2c5e81135 Mon Sep 17 00:00:00 2001 From: Sheldon Lee Date: Sun, 27 Feb 2022 20:43:04 +0800 Subject: [PATCH] Added script to init dotfiles. --- .custom_bash_scripts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/.custom_bash_scripts b/.custom_bash_scripts index 88cd2da..e91d286 100644 --- a/.custom_bash_scripts +++ b/.custom_bash_scripts @@ -1,4 +1,12 @@ #!/bin/sh + +# init for dotfiles. +initdots() +{ + config='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' + config checkout HEAD + source $HOME/.bashrc +} # nnn # for nnn file manager