-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
148 changed files
with
1,698 additions
and
925 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
havee.me | ||
havee.me |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ layman 是 Gentoo 下的一款管理第三方 overlay 工具,通过 layman 可 | |
具体需要开启哪些 use flag,完全是根据各 overlay 用哪种工具维护的,譬如 git、cvs、subversion、mercurial 等等。 | ||
|
||
<!-- more --> | ||
layman 的配置非常方便,几乎不用介入修改。譬如作为中文区用户,安装 layman 以后,都会增加一个 overlay: | ||
layman 的配置非常方便,几乎不用介入修改。譬如作为中文区用户,安装 layman 以后,基本都会增加一个 overlay: | ||
|
||
layman -f -a gentoo-zh | ||
|
||
|
@@ -56,23 +56,24 @@ sync-uri = git://github.com/microcai/gentoo-zh.git | |
|
||
对于 app-portage/layman-2.3.0 之前升级上来的用户而言,如果之前就添加了各个 overlay,那么通过 `layman-updater -R` 重建一下即可。 | ||
|
||
很多 Gentoo user 喜欢自己维护一个个人的 overlay,添加进去也很方便,譬如我的: | ||
很多 Gentoo user 喜欢自己维护一个个人的 overlay,添加进去也很方便: | ||
|
||
layman -o https://raw.githubusercontent.com/Ihavee/overlay/master/repositories.xml -f -a Havee | ||
layman -o https://raw.githubusercontent.com/user/overlay-name/master/repositories.xml -f -a overlay-name | ||
|
||
当然 repositories.xml 必须包含如下的基本信息: | ||
|
||
```xml | ||
<?xml version="1.0" ?> | ||
<repositories version="1.0"> | ||
<repo priority="50" quality="experimental" status="unofficial"> | ||
<name>Havee</name> | ||
<description>Havee's gentoo overlay</description> | ||
<homepage>http://github.com/Ihavee/overlay</homepage> | ||
<name>overlay name</name> | ||
<description>personal overlay</description> | ||
<homepage>http://github.com/user/overlay-name</homepage> | ||
<owner> | ||
<email>[email protected]</email> | ||
<email>[email protected]</email> | ||
<name>user</name> | ||
</owner> | ||
<source type="git">git://github.com/Ihavee/overlay.git</source> | ||
<source type="git">git://github.com/user/overlay-name.git</source> | ||
</repo> | ||
</repositories> | ||
``` | ||
|
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
--- | ||
layout: post | ||
title: "不要记录 bash 操作历史" | ||
category: Linux | ||
tags: [Bash] | ||
--- | ||
|
||
很多时候,我们可能不想记录某一个登陆进程中的 bash 操作历史。 | ||
|
||
譬如,你在教学过程中,演示一些危险的 shell 操作,而被系统记录;譬如,我们偶尔进行一些不可描述的操作时,我们当然不想这次的操作被记录,所以我们想清除这次的登陆操作。 | ||
|
||
原因很多,可能正经,可能不正经。下面是具体的一些方法。 | ||
|
||
#### 移除当前进程的操作历史,保留之前历史 | ||
|
||
##### 变量 HISTFILE | ||
|
||
unset HISTFILE; exit | ||
|
||
<!-- more --> | ||
|
||
##### 杀掉 console | ||
|
||
kill -9 $$ | ||
|
||
#### 彻底移除所有历史 | ||
|
||
##### history 选项 | ||
|
||
history -c; history -w; exit | ||
|
||
##### 变量 HISTSIZE | ||
|
||
HISTSIZE=0; exit | ||
|
||
##### 删除 history 记录的文件 | ||
|
||
rm -f $HISTFILE; unset HISTFILE; exit | ||
or | ||
cat /dev/null > ~/.bash_history; exit | ||
|
||
当然,一般人,也用不到清除操作历史。 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<footer class="footer text-center"> | ||
<p>© {{ site.time | date: '%Y' }} <a href="{{ site.url }}" title="{{ site.description }}">{{ site.author.name }}</a>. 由 <a href="//jekyllrb.com/" title="Transform your plain text into static websites and blogs.">Jekyll</a> 与 <a href="//getbootstrap.com/" title="Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.">Bootstrap</a> 强力驱动</p> | ||
<p>文章以 <a href="//creativecommons.org/licenses/by/3.0/" title="CC BY 3.0 License">the CC BY 3.0</a> 许可发布</p> | ||
<p>© {{ site.time | date: '%Y' }} <a href="{{ site.url }}" title="{{ site.description }}">{{ site.author.name }}</a>. with help from <a href="//jekyllrb.com/" title="Transform your plain text into static websites and blogs.">Jekyll</a> and <a href="//getbootstrap.com/" title="Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web.">Bootstrap</a></p> | ||
<p>Articles are licensed under <a href="//creativecommons.org/licenses/by/3.0/" title="CC BY 3.0 License">the CC BY 3.0</a></p> | ||
</footer> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.