花费 21 ms
Unix环境下PS1变量的设置

我的ps1命令提示符: export PS1="\[\e[31;1m\]\u @ \[\e[34;1m\]\h \[\e[36;1m\]\w \[\e[33;1m\]\t $ \[\e[37;1m\]\n" 显示效果如下: 1. 设置ps1变脸的显示 PS1(是数字1而不是字母l ...

Thu May 22 01:36:00 CST 2014 0 7302
.psl脚本介绍

.ps1文件是PowerShell写好的脚本文件 可以在记事本中写一段PowerShell代码,然后将其保存为“xxx.ps1”,后面要使用它的时候,双击即可运行了。这有点像批处理的“.bat”文件,也有点像VBScript的“.vbs”文件。这些都是Windows的脚本文件。 在线教程 ...

Wed Feb 28 05:53:00 CST 2018 0 1723
shell提示符显示git当前分支

编辑/etc/profile或者~/.bashrc 在行末添加如下内容 # 获取git当前分支 git_branch() { branch='' cd $PWD if ...

Tue Mar 04 04:54:00 CST 2014 0 2369

 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM