iterm

linux shell里面nohup的用法

心不动则不痛 提交于 2019-12-02 16:05:42
百度了很多,但都不是官方的,按照linux命令中,一切可以--help的思想 我们就来 --help下。 其实linux命令不难学 只要会了两个基本的命令参数就可以开搞 man 男人 help 帮助 ls --help or man ls mkdir --help or man mkdir ##英文的(nohup (GNU coreutils) 5.97) nohup --help 用法:nohup 命令 [参数]... 或:nohup 选项 Run COMMAND, ignoring hangup signals. --help 显示此帮助信息并退出 --version 输出版本信息并退出 NOTE: your shell may have its own version of nohup, which usually supersedes the version described here. Please refer to your shell's documentation for details about the options it supports. 请向 bug-coreutils@gnu.org 报告错误。 ##中文的nohup (GNU coreutils) 8.4 nohup --help 用法:nohup 命令 [参数]...  或:nohup 选项

ZSH iterm2 increase number of lines history

时光毁灭记忆、已成空白 提交于 2019-12-02 14:34:54
Not sure if this is zsh, iterm2 or the interaction between them. Trying to change the number of recallable lines in the terminal - not the command history, the output history. In .zshrc I have : HISTFILE=~/.histfile HISTSIZE=100000 SAVEHIST=100000 This seems to be ignored =( Not sure of the correct term to google, "Terminal output history?" It's not immediately obvious in the iTerm2 documentation on how to change it. open the iTerm2 preferences ⌘ + , select the Profiles tab then select the Terminal subtab Beware, changes to the Scrollback lines value take effect immediately so check Unlimited

iTerm 2 profiles

99封情书 提交于 2019-12-02 14:06:45
I have recently switched over to iTerm2 and love it. I am wondering though if there is a way to use profiles to correspond to what environment/specific machine you are on. Say if I am doing tasks in one window on my mac the profile is displayed as default, but if I ssh into a machine (lets say dev0), the profile on iTerm will update to profile dev0. Once I've finished with dev0 and call exit, the profile will switch to default again. I realize one work around is to open up a specific profile whenever I want to ssh into another machine and have a way to distinguish, but if the connection is

How do i clear tmux screen while tailing logs?

北城余情 提交于 2019-11-30 17:39:22
I'm using tmux with iTerm2. Clear screen using Ctrl-L works when i'm in bash, but does not work when i'm tailing server logs. How do i fix this? You can clear the current buffer using send-keys -R but keep in mind that the application running inside that buffer will not notice that the buffer contents have been wiped. Reference Ctrl-L is bound to a readline command. However, while you are running the command that tails your log, bash is not receiving keyboard input. You could suspend the tail with Ctrl-Z, clear the screen with Ctrl-L, and resume the tail with fg . This is independent of tmux ;

How do I make iTerm terminal notify me when a job/process is complete?

我的未来我决定 提交于 2019-11-30 10:11:33
问题 A notification center notification would be ideal but growl, bounce dock, sound, etc would be fine, too (or if this can only be done in Terminal.app I'd be willing to switch back). Is there an option somewhere in iTerm to turn on notifications or is it something I'm supposed to type at the end of a command in the terminal? If the latter, is it possible to add an alert once process has started (for example if I realize it's going to take longer than I initially expected, I'm bad at guessing).

lose vim colorscheme in tmux mode

久未见 提交于 2019-11-30 06:09:35
问题 I'm running iterm2 and when I'm in tmux mode the colorscheme I have set in vim does not show up. Only the color scheme I've set in iterm. If I run vim from shell the colorscheme appears correct - its only when I'm in tmux mode. I've tried setting :colorscheme molokai when in vim (see screenshot below) and it doesn't change - again, the default colorscheme for iterm2 remains. Am I missing some setting to iterm or tmux.conf? My dotfles are up on github here. 回答1: I had the same problem. Only

How do i clear tmux screen while tailing logs?

最后都变了- 提交于 2019-11-30 01:50:15
问题 I'm using tmux with iTerm2. Clear screen using Ctrl-L works when i'm in bash, but does not work when i'm tailing server logs. How do i fix this? 回答1: You can clear the current buffer using send-keys -R but keep in mind that the application running inside that buffer will not notice that the buffer contents have been wiped. Reference 回答2: Ctrl-L is bound to a readline command. However, while you are running the command that tails your log, bash is not receiving keyboard input. You could

How can I get mouse selection to work in emacs and iTerm2 on Mac?

你离开我真会死。 提交于 2019-11-29 20:09:12
after turning on xterm-mouse-mode, any click on the in the screen returns "mouse-1 is undefined". What should I be defining "mouse-1" as? Is there some reason my mouse clicks are returning this event, and not others its suspecting? I put this in my .emacs: (require 'mouse) (xterm-mouse-mode t) (defun track-mouse (e)) (setq mouse-sel-mode t) and that seems to do the trick, and now a mouse click in a split changes focus to the split. Note: I am using iterm2, and I found the info here: http://groups.google.com/group/iterm2-discuss/browse_thread/thread/8e1f2ee7db26c07d/17ac15e69c554998?show_docid

mac之idea卡顿修改内存设置

百般思念 提交于 2019-11-29 12:10:35
调出iterm.app find / -name idea.vmoptions 把虚拟内存的配置文件找到,我的文件位置是: /Applications/IntelliJ IDEA.app/Contents/bin/idea.vmoptions 这里看博客,也有直接进app右键显示包内容,直接找到文件的,这样就不用find好久了~ 然后vi 进去修改配置 来源: https://my.oschina.net/xlpapapa/blog/3105801

Homebrew fatal: needed a single revision (MacOs Sierra)

谁说我不能喝 提交于 2019-11-28 21:08:33
Not sure if this problem is related to upgrading to MacOs Sierra, but since that moment this error occurs when I run 'brew update' → brew update Checking out v1.0.0 in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask... To checkout master in /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask run: 'cd /usr/local/Homebrew/Library/Taps/caskroom/homebrew-cask && git checkout master fatal: Cannot update paths and switch to branch 'v1.0.0' at the same time. Did you intend to checkout 'refs/tags/1.0.0' which can not be resolved as commit? fatal: Needed a single revision invalid upstream