iterm

Change iTerm2 tab title dynamically for Ruby/Rails

自古美人都是妖i 提交于 2019-12-06 23:03:08
问题 I am using iTerm2 and usually have many tabs open. Unfortunately all tabs show me the same title "ruby" as it is all ruby scripts. But one is rails server, the other rails console, the next is "spork", ... I would like to set the tab titles dynamically to "server", "console" or something similar as long as the processes are running and back to the default ("bash") when they are finished. Anybody knows how to do this? Thanks. 回答1: This command will set a tab's title to MY_NEW_TITLE echo -e "

Why can't I get the cobalt2 zsh theme to work on my iTerm2?

纵然是瞬间 提交于 2019-12-06 20:44:25
I want to install this ZSH theme . I downloaded both the iTerm2 and ZSH themes. The iTerm theme was imported through the preferences. The ZSH theme was inserted into ~/.oh-my-zsh/themes along with all the other ZSH themes. When I open my .zshrc and change ZSH_THEME="bobbyrussell" to ZSH_THEME="cobalt2" nothing happens. I restart iTerm but the colors are not changed. Updated with Details: ~ echo $ZSH_THEME cobalt2 ~ echo $PROMPT %/ ~ File: ~/.zshrc # Path to your oh-my-zsh installation. export ZSH=/Users/username/.oh-my-zsh # Set name of the theme to load. # Look in ~/.oh-my-zsh/themes/ #

I installed nvm n and now I keep getting “dyld: bad external relocation length”

梦想与她 提交于 2019-12-06 05:04:29
问题 I installed nvm, n, using sudo and decided to test it out by downloading several versions of node on my system. When I tried to switch between the node versions I kept getting "Permissions denied." So I decided to sudo the command for switching between versions too. That's when all hell broke loose. I keep getting dyld:bad external relocation length I've tried to reboot my terminal with some hope that it would magically fix itself out. Alas, I was wrong.Thanks in Advance. Update 1 : I've

set pastetoggle not working

蓝咒 提交于 2019-12-05 12:25:24
My vim setup( https://github.com/aaronjorbin/.vim ) contains set pastetoggle=<F2> yet fn+F2 (when vim is running in terminal) causes vim to enter insert mode and output a Q on it's own line (same behavior when I am already in insert mode). This is the same if I am working on my local machine or if I have sshed into another server. In iterm2, nothing happens when I am in normal or visual mode. When I am in insert mode, <F2> is inserted. My config works perfectly well on my mac mini and linux netbook, but this is throwing me for a loop. This is likely due to your TERM type being set to something

Vim colors too bright (terminal)

流过昼夜 提交于 2019-12-05 05:13:06
问题 I have a problem with Vim and iTerm2, the colors are too bright (for ALL themes). It works with both Terminal.app and MacVim, so I guess it must be some setting in iTerm2 I've completely missed. The picture below shows you the difference (iTerm2 to the left, MacVim / Terminal.app to right): What I'm using: iTerm2: Build 1.0.0.20130624 Terminal type: xterm-256 Shell: zsh 5.0.2 Vim: version 7.3.666 OS X: 10.7.5 Do you guys have any idea what I'm missing? 回答1: You shouldn't compare colorschemes

Change iTerm2 tab title dynamically for Ruby/Rails

时间秒杀一切 提交于 2019-12-05 03:25:43
I am using iTerm2 and usually have many tabs open. Unfortunately all tabs show me the same title "ruby" as it is all ruby scripts. But one is rails server, the other rails console, the next is "spork", ... I would like to set the tab titles dynamically to "server", "console" or something similar as long as the processes are running and back to the default ("bash") when they are finished. Anybody knows how to do this? Thanks. This command will set a tab's title to MY_NEW_TITLE echo -e "\033];MY_NEW_TITLE\007" Matt The best way to do this depends on your shell. I use zsh, which allows you to

I installed nvm n and now I keep getting “dyld: bad external relocation length”

a 夏天 提交于 2019-12-04 11:26:27
I installed nvm, n, using sudo and decided to test it out by downloading several versions of node on my system. When I tried to switch between the node versions I kept getting "Permissions denied." So I decided to sudo the command for switching between versions too. That's when all hell broke loose. I keep getting dyld:bad external relocation length I've tried to reboot my terminal with some hope that it would magically fix itself out. Alas, I was wrong.Thanks in Advance. Update 1 : I've tried to use npm to install yo and it gives me the same "dyld" prompt, along with the following: Trace/BPT

Applescript (osascript): opening split panes in iTerm 2 and performing commands

回眸只為那壹抹淺笑 提交于 2019-12-04 03:03:31
The following works to open two tabs in iTerm 2 . I can't seem to figure out how to get this to using split panes instead. I've tried applying what I see on several forums, but it never works. Could someone point me in the right direction? osascript <<-eof tell application "iterm" set myterm to (make new terminal) tell myterm launch session "Default session" tell the last session set name to "Server" write text "cd $projectsFolder" end tell launch session "Default session" tell the last session set name to "Console" write text "cd $projectsFolder" end tell end tell end tell eof With the new

Vim colors too bright (terminal)

こ雲淡風輕ζ 提交于 2019-12-03 21:40:33
I have a problem with Vim and iTerm2, the colors are too bright (for ALL themes). It works with both Terminal.app and MacVim, so I guess it must be some setting in iTerm2 I've completely missed. The picture below shows you the difference (iTerm2 to the left, MacVim / Terminal.app to right): What I'm using: iTerm2: Build 1.0.0.20130624 Terminal type: xterm-256 Shell: zsh 5.0.2 Vim: version 7.3.666 OS X: 10.7.5 Do you guys have any idea what I'm missing? You shouldn't compare colorschemes in GUI Vim and in CLI Vim: the number of colors that can be used in both contexts is very different and it

Can't see what I'm typing in iterm2

狂风中的少年 提交于 2019-12-03 11:36:21
问题 Periodically, I'll run rspec (though I don't know if its specific to that) and suddenly, I can't see what i'm typing. I have to close that iterm2 window out and open a new one. Then that will work fine for a while and iterm2 will hide my typing again. I can always see responses to my commands, just not my typing or cursor. It also does this weird stacking thing where it pushes each new line farther to the right. Update!: I tried the suggestion to type in stty echo and can see my text, but the