.profile.d 分散式的 profile 設定檔管理 - Linux

By Ophelia
at 2017-04-19T16:57
at 2017-04-19T16:57
Table of Contents
# .profile.d #
# 分散式的 profile 設定檔管理專案 #
<https://github.com/Lin-Buo-Ren/.profile.d>
.profile 為類 Unix 作業系統中使用者登入後會一次性載入並執行的設定檔,主要用來
設定使用者的環境變數(包含作為可執行檔搜索路徑的 `PATH` 環境變數)。
本專案是用來放置原本使用者會放置於`〈家目錄〉/.profile` 個人設定檔的腳本片段,
這樣就可以最小程度地讓使用者自訂的 .profile 片段汙染 GNU/Linux 作業系統散佈版
本提供的版本且讓該片段可以被重複利用。
您需要在家目錄中新建 .profile.d 目錄(如果該目錄原本還沒存在的話),然後將您的
profile 個人設定檔片段以 .source.sh 副檔名寫進 .profile.d 目錄中,.profile 中
的程式會自動引入(source)並執行。
## 特色 / Features ##
* 備有將指定目錄插入 shell 可執行檔搜尋路徑(`PATH` 環境變數)中的工具函式
* 如果指定目錄不存在或是 `PATH` 中已有相同路徑將不會添加,避免增加搜尋路徑的多
餘時間
## 設定 / Setup ##
1. 將本版控庫拓製(clone)或下載解開到家目錄中的 .profile.d 目錄,確定
`README.setup` 與其他檔案位於 ~/.profile.d 目錄中
2. 在 ~/.profile 設定檔中加入下列內容:
# Setup .profile.d/
# https://github.com/Lin-Buo-Ren/.profile.d
. "${HOME}/.profile.d/README.setup"
您需要重新登出再登入才能讓設定生效
## 注意 / Remark ##
.profile 為通用的 script 程式,應使用 [POSIX.1-2008 規範的 shell script 語法
](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html )而
非 Bash 等殼層程式的專有語法撰寫
## 授權條款 / License ##
GPLv3+
--
# 分散式的 profile 設定檔管理專案 #
<https://github.com/Lin-Buo-Ren/.profile.d>
.profile 為類 Unix 作業系統中使用者登入後會一次性載入並執行的設定檔,主要用來
設定使用者的環境變數(包含作為可執行檔搜索路徑的 `PATH` 環境變數)。
本專案是用來放置原本使用者會放置於`〈家目錄〉/.profile` 個人設定檔的腳本片段,
這樣就可以最小程度地讓使用者自訂的 .profile 片段汙染 GNU/Linux 作業系統散佈版
本提供的版本且讓該片段可以被重複利用。
您需要在家目錄中新建 .profile.d 目錄(如果該目錄原本還沒存在的話),然後將您的
profile 個人設定檔片段以 .source.sh 副檔名寫進 .profile.d 目錄中,.profile 中
的程式會自動引入(source)並執行。
## 特色 / Features ##
* 備有將指定目錄插入 shell 可執行檔搜尋路徑(`PATH` 環境變數)中的工具函式
* 如果指定目錄不存在或是 `PATH` 中已有相同路徑將不會添加,避免增加搜尋路徑的多
餘時間
## 設定 / Setup ##
1. 將本版控庫拓製(clone)或下載解開到家目錄中的 .profile.d 目錄,確定
`README.setup` 與其他檔案位於 ~/.profile.d 目錄中
2. 在 ~/.profile 設定檔中加入下列內容:
# Setup .profile.d/
# https://github.com/Lin-Buo-Ren/.profile.d
. "${HOME}/.profile.d/README.setup"
您需要重新登出再登入才能讓設定生效
## 注意 / Remark ##
.profile 為通用的 script 程式,應使用 [POSIX.1-2008 規範的 shell script 語法
](http://pubs.opengroup.org/onlinepubs/9699919799/utilities/V3_chap02.html )而
非 Bash 等殼層程式的專有語法撰寫
## 授權條款 / License ##
GPLv3+
--
Tags:
Linux
All Comments

By Liam
at 2017-04-23T16:17
at 2017-04-23T16:17

By Cara
at 2017-04-25T07:58
at 2017-04-25T07:58

By Cara
at 2017-04-29T09:29
at 2017-04-29T09:29

By Blanche
at 2017-04-29T21:05
at 2017-04-29T21:05

By Bennie
at 2017-05-03T14:34
at 2017-05-03T14:34

By Elma
at 2017-05-07T00:35
at 2017-05-07T00:35

By Kelly
at 2017-05-09T11:18
at 2017-05-09T11:18

By Quanna
at 2017-05-11T04:31
at 2017-05-11T04:31

By Erin
at 2017-05-13T06:11
at 2017-05-13T06:11

By Quintina
at 2017-05-17T06:51
at 2017-05-17T06:51

By George
at 2017-05-22T03:53
at 2017-05-22T03:53

By Regina
at 2017-05-25T01:56
at 2017-05-25T01:56

By Liam
at 2017-05-28T16:01
at 2017-05-28T16:01

By Queena
at 2017-05-30T04:54
at 2017-05-30T04:54

By Caitlin
at 2017-06-04T02:37
at 2017-06-04T02:37

By Gilbert
at 2017-06-05T18:27
at 2017-06-05T18:27

By Delia
at 2017-06-06T04:36
at 2017-06-06T04:36

By Ursula
at 2017-06-10T22:56
at 2017-06-10T22:56

By Kristin
at 2017-06-12T10:54
at 2017-06-12T10:54

By Todd Johnson
at 2017-06-17T00:22
at 2017-06-17T00:22
Related Posts
bash讀檔案多跑出一個空白鍵

By Kelly
at 2017-04-19T00:35
at 2017-04-19T00:35
xorg.conf 一直沒有作用

By Thomas
at 2017-04-18T18:26
at 2017-04-18T18:26
losetup指令的問題

By Anonymous
at 2017-04-18T09:58
at 2017-04-18T09:58
bash讀檔案多跑出一個空白鍵

By Kelly
at 2017-04-18T08:06
at 2017-04-18T08:06
安裝linux問題

By Victoria
at 2017-04-17T23:56
at 2017-04-17T23:56