echo $SHELL
Mac配置环境变量的地方
root@localhost: v5(p?lo87Dkh
1./etc/profile (建议不修改这个文件 )
全局(公有)配置,不管是哪个用户,登录时都会读取该文件。
2./etc/bashrc (一般在这个文件中添加系统级环境变量)
全局(公有)配置,bash shell执行时,不管是何种方式,都会读取此文件。
3.~/.bash_profile (一般在这个文件中添加用户级环境变量)
每个用户都可使用该文件输入专用于自己使用的shell信息,当用户登录时,该文件仅仅执行一次!
移动所有桌面文件夹:mv Desktop/* soft
清屏clear
customize terminal prompt:
export PS1=” ”
\d – Current date
\t – Current time
\h – Host name
# – Command number
\u – User name
\W – Current working directory (ie: Desktop/)
\w – Current working directory with full path (ie: /Users/Admin/Desktop/)
1。在当前文件夹打开终端
系统偏好设置-键盘-快捷键-服务
2。截屏
默认:com+shift+3 or 4
3。修改截屏保存路径,格式
defaults write com.apple.screencapture location /path/
修改生效 killall SystemUIServer
defaults write com.apple.screencapture type jpg
4。修改个人收藏
直接拖动
5。整理Dock,移除不常用的
6。慢了加速:定期清理-磁盘整理工具
7。修改文件夹名
8。自动补全:打开终端,输入:
nano .inputrc
在里面粘贴上以下语句:
set completion-ignore-case on
set show-all-if-ambiguous on
TAB: menu-complete
Control+O,保存,重启终端,OK!
9。回到桌面
使用快捷键Command + F3 快速显示桌面,再按一次回到应用程序
使用快捷键 Fn+F11 快速显示桌面,再按一次回到应用程序