![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
mac
Teng的世界
北京奇迹部落网络科技有限公司MiracleStudio成员
展开
-
iphone 恒屏和自动旋转
利用系统自动生成的代码。- (BOOL)shouldAutorotateToInterfaceOrientation:(UIInterfaceOrientation)interfaceOrientation { // Return YES for supported orientations return (interfaceOrientation == UIInterfa转载 2013-04-11 11:37:47 · 1230 阅读 · 0 评论 -
在mac终端中用颜色显示不同类型文件
Terminal 下不同类型的文件显示不同的颜色Terminal 默认的 shell 是 bash (提示符是 $)1.在 ~ 先建立一个文件 ~/.profile 加入下面的两行:export CLICOLOR=1export LSCOLORS=gxfxaxdxcxegedabagacad存盘, 退出Terminal, 重起Terminal.更改LS原创 2014-04-20 12:31:58 · 20828 阅读 · 1 评论 -
/etc/profile、~/.bash_profile等几个文件的执行过程
关于登录linux时,/etc/profile、~/.bash_profile等几个文件的执行过程。在登录Linux时要执行文件的过程如下:在 刚登录Linux时,首先启动 /etc/profile 文件,然后再启动用户目录下的 ~/.bash_profile、 ~/.bash_login或 ~/.profile文件中的其中一个,执行的顺序为:~/.bash_profile、 ~/.b转载 2015-08-13 09:16:12 · 605 阅读 · 0 评论 -
常用Vim指令
常用vim指令http://dsec.pku.edu.cn/~jinlong/vi/Vi.html原创 2015-08-18 09:51:52 · 371 阅读 · 0 评论 -
Mac终端Terminal的光标快捷键
1.光标移动到行首 ctrl + a2.光标移动到行末 ctrl + e3.单词移动 ctrl + →(方向键)4.从当前光标删除到行首 ctrl + u5.从当前光标删除到末尾 ctrl + k6.粘贴刚才删除的内容 ctrl + y7.清除屏幕 ctrl + l8.查找之前使用命令 ctrl + r切换窗口 command + tab同原创 2015-12-03 14:04:24 · 3390 阅读 · 1 评论 -
常用.bash_profile配置
vim ~/..bash_profileexport PS1="\[\033[36m\]\u\[\033[m\]@\[\033[32m\]\h:\[\033[33;1m\]\w\[\033[m\]\$ "export CLICOLOR=1export LSCOLORS=ExFxBxDxCxegedabagacadalias l='ls -GFh'alias cls='clea原创 2015-08-13 09:21:22 · 4023 阅读 · 0 评论 -
【Mac】使用技巧
Mac使用技巧1.Mac端的everything,能查询一切的东东: Alfred2.关闭所有的同类型窗口 eg.Finder、浏览器等 command + option + W原创 2016-07-22 11:02:14 · 1206 阅读 · 0 评论