rename home to nixhome

This commit is contained in:
陆柯 2021-11-05 09:47:57 +08:00
parent dd81d8a6e7
commit 813df737fd
11 changed files with 13 additions and 13 deletions

View File

@ -35,7 +35,7 @@ fi
echo
echo "<<< Configure root home"
source /faronear/fon/sysconfig/config-home.sh /faronear/fon/sysconfig/home
source /faronear/fon/sysconfig/config-home.sh /faronear/fon/sysconfig/nixhome
echo
echo "<<< Change root password"
@ -51,7 +51,7 @@ chmod 700 /home/$NewUser
echo
echo "<<< Configure $NewUser home"
source /faronear/fon/sysconfig/config-home.sh /faronear/fon/sysconfig/home /home/$NewUser
source /faronear/fon/sysconfig/config-home.sh /faronear/fon/sysconfig/nixhome /home/$NewUser
echo
# Debian 10 default to /bin/sh

View File

@ -6,19 +6,19 @@ then
else
echo "Usage: setup.sh [Config-Source-Path] [User-Home-Path]"
echo "---------------------------------------------"
read -p "Enter config source path (leave blank for [Users/luk.lu]/faronear/fon/sysconfig/home) >> " SourcePath
read -p "Enter config source path (leave blank for [Users/luk.lu]/faronear/fon/sysconfig/nixhome) >> " SourcePath
if [ ! $SourcePath ]
then
echo "Use default source path: [Users/luk.lu]/faronear/fon/sysconfig/home"
if [ -d /faronear/fon/sysconfig/home ]
echo "Use default source path: [Users/luk.lu]/faronear/fon/sysconfig/nixhome"
if [ -d /faronear/fon/sysconfig/nixhome ]
then
SourcePath=/faronear/fon/sysconfig/home
SourcePath=/faronear/fon/sysconfig/nixhome
else
if [ -d /Users/luk.lu/faronear/fon/sysconfig/home ]
if [ -d /Users/luk.lu/faronear/fon/sysconfig/nixhome ]
then
SourcePath=/Users/luk.lu/faronear/fon/sysconfig/home
SourcePath=/Users/luk.lu/faronear/fon/sysconfig/nixhome
else
SourcePath=`pwd`/home
SourcePath=`pwd`/nixhome
fi
fi
fi
@ -35,7 +35,7 @@ if [ ! -d $SourcePath ]
then
echo "!!! Not existing $SourcePath, please try again"
else
echo "Copy home scripts from $SourcePath"
echo "Copy nixhome scripts from $SourcePath"
pushd $HomePath
echo "---------------------------------------------"
homescriptlist=".emacs .emacs.lisp .bashrc .bash_profile .gitignore"

View File

@ -96,10 +96,10 @@
(setq scroll-conservatively 1)
;; destop auto-saving:
(load "desktop")
(desktop-load-default)
;; desktop auto-reloading when startup:
; (desktop-read)
(desktop-read) ; desktop auto-reloading when startup
(add-hook 'kill-emacs-hook '(lambda()(desktop-save "~/"))) ;当emacs退出时保存 ~/desktop 文件记录状态
;; set scroll-bar-mode:
;(hscroll-global-mode t)