From d80e7a7bee5acec40163d924cb1fc62fe8d7ab85 Mon Sep 17 00:00:00 2001 From: Luk Lu Date: Wed, 1 Jul 2020 08:52:54 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8A=8A=20.*=20=E6=96=87=E4=BB=B6=E8=BF=81?= =?UTF-8?q?=E7=A7=BB=E5=88=B0=20sysconfig/home=20=E7=9B=AE=E5=BD=95?= =?UTF-8?q?=E4=B8=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config-home.sh | 6 +++--- .bash_logout => home/.bash_logout | 0 .bash_profile => home/.bash_profile | 0 .bashrc => home/.bashrc | 3 ++- .cshrc => home/.cshrc | 0 .emacs => home/.emacs | 0 {.emacs.lisp => home/.emacs.lisp}/undo-tree.el | 0 {.emacs.lisp => home/.emacs.lisp}/web-beautify.el | 0 .profile => home/.profile | 0 9 files changed, 5 insertions(+), 4 deletions(-) rename .bash_logout => home/.bash_logout (100%) rename .bash_profile => home/.bash_profile (100%) rename .bashrc => home/.bashrc (97%) rename .cshrc => home/.cshrc (100%) rename .emacs => home/.emacs (100%) rename {.emacs.lisp => home/.emacs.lisp}/undo-tree.el (100%) rename {.emacs.lisp => home/.emacs.lisp}/web-beautify.el (100%) rename .profile => home/.profile (100%) diff --git a/config-home.sh b/config-home.sh index 62e6512..0803700 100755 --- a/config-home.sh +++ b/config-home.sh @@ -7,11 +7,11 @@ if [ $1 ] then SourcePath=$1 else - read -p "Enter config source path (leave blank for /faronear/lib/sysconfig) >> " SourcePath + read -p "Enter config source path (leave blank for /faronear/lib/sysconfig/home) >> " SourcePath if [ ! $SourcePath ] then - echo Use default source path: /faronear/lib/sysconfig - SourcePath=/faronear/lib/sysconfig + echo Use default source path: /faronear/lib/sysconfig/home + SourcePath=/faronear/lib/sysconfig/home fi fi diff --git a/.bash_logout b/home/.bash_logout similarity index 100% rename from .bash_logout rename to home/.bash_logout diff --git a/.bash_profile b/home/.bash_profile similarity index 100% rename from .bash_profile rename to home/.bash_profile diff --git a/.bashrc b/home/.bashrc similarity index 97% rename from .bashrc rename to home/.bashrc index 7e92687..004aef5 100644 --- a/.bashrc +++ b/home/.bashrc @@ -42,12 +42,13 @@ alias cvs='cvs -z9' alias ps='ps -elf' # Always list long directory and time. -if uname | grep 'Darwin'; +if [[ "$(uname)" = "Darwin" ]]; then alias l='ls -lG' alias ll='ls -lGA' # show .xxx alias lll='ls -lGa' # show .xxx and . and .. export HOMEBREW_NO_AUTO_UPDATE=true + export BASH_SILENCE_DEPRECATION_WARNING=1 else alias l='ls -l --color=auto' # --time-style=long-iso --color=auto' alias ll='ls -lA --color=auto' diff --git a/.cshrc b/home/.cshrc similarity index 100% rename from .cshrc rename to home/.cshrc diff --git a/.emacs b/home/.emacs similarity index 100% rename from .emacs rename to home/.emacs diff --git a/.emacs.lisp/undo-tree.el b/home/.emacs.lisp/undo-tree.el similarity index 100% rename from .emacs.lisp/undo-tree.el rename to home/.emacs.lisp/undo-tree.el diff --git a/.emacs.lisp/web-beautify.el b/home/.emacs.lisp/web-beautify.el similarity index 100% rename from .emacs.lisp/web-beautify.el rename to home/.emacs.lisp/web-beautify.el diff --git a/.profile b/home/.profile similarity index 100% rename from .profile rename to home/.profile