projectsedu.com 安装virtualenvwrapper pip install virtualenvwrapperln -s /home/xxxx/.local/bin/virtualenv /usr/bin/virtualenv 编辑.bashrc文件 export WORKON_ ...
分类:
编程语言 时间:
2020-07-23 09:20:09
阅读次数:
75
有些命令拼补全,使用命令补全工具帮忙yuminstall-ybash-completionsource/usr/share/bash-completion/bash_completionsource<(kubectlcompletionbash)可以将source<(kubectlcompletionbash)命令写入$HOME/.bashrc中每次重启后也可以继续使用
分类:
系统相关 时间:
2020-07-22 13:53:46
阅读次数:
96
1.设置别名 alias 别名=’原命令 -选项/参数’ 例如: alias ll='ls -lt'1 这样设置了ls -lt命令的别名是ll,在终端输入ll时,则相当于输入了ls -lt命令 注意: 在定义别名时,等号两边不能有空格,否则shell不能决定您需要做什么。仅在命令中包含空格或特殊字符 ...
分类:
系统相关 时间:
2020-07-16 18:09:59
阅读次数:
82
最近终端启动很慢,查阅相关资料后发现是,因为nvm在安装的时候,需要在 ~/.bashrc(如果你的终端用的是bash)或者~/.zshrc(如果你的终端用的是zsh) 中添加: export NVM_DIR="$HOME/.nvm" [ -s "$NVM_DIR/nvm.sh" ] && \. " ...
分类:
其他好文 时间:
2020-07-14 00:28:38
阅读次数:
104
curl -fsSL https://raw.githubusercontent.com/codinn/core-shell-scripts/master/bashrc_Core_Shell -o ~/.bashrc_Core_Shell && . ~/.bashrc_Core_Shell && g ...
分类:
Web程序 时间:
2020-07-12 17:18:12
阅读次数:
111
制作永久的别名,方便远程管理 真机:永久的别名配置文件/root/.bashrc (系统级配置文件) [root@room9pc01 ~]# vim /root/.bashrc alias gos='ssh -X root@172.25.0.11' alias god='ssh -X root@17 ...
分类:
其他好文 时间:
2020-07-08 22:56:44
阅读次数:
88
我用的是 DeepIn 系统,非 root 模式下命令行的是有配色的,虽然不是很好看,但也可以接受。但是一切换到 root 模式就感觉贼难受。。变成纯色了。有强迫症的人必然会想把颜色换回来。。。 实际上颜色文件是保存在 ~/.bashrc 下。 而 ~/.bashrc 里面的PS变量是只作用在用户自 ...
分类:
系统相关 时间:
2020-07-06 01:20:04
阅读次数:
137
首先使用vim ~/.bashrc进入 ~/.bashrc文件 然后在~/.bashrc文件添加以下修改 凭自己的习惯添加 alias gst='git status' alias ga='git add -A .' alias gc='git commit -m' alias gd='git di ...
分类:
系统相关 时间:
2020-07-01 20:34:45
阅读次数:
70
1.定义bash环境的用户配置文件是(2分) D - A. bash & .bashrc - B. bashrc & .bash_conf - C. bashrc & bash_profile - D. .bashrc & .bash_profile 2.使用下面的哪条命令可以为文件建立一个软连接( ...
分类:
系统相关 时间:
2020-06-30 12:38:04
阅读次数:
183
1.oracle 用户环境: 主库: [oracle@hzmtx admin]$ cat ~/.bash_profile # .bash_profile # Get the aliases and functions if [ -f ~/.bashrc ]; then . ~/.bashrc fi ...
分类:
数据库 时间:
2020-06-28 00:20:49
阅读次数:
82