terminal

How to preserve emacs colors from regular terminal to gnu screen

≯℡__Kan透↙ 提交于 2020-02-01 00:47:13
问题 I'm using OSX snow leopard, for the record. When I use emacs straight from terminal, I have a color set (e.g. for c/c++) that I'm very happy with---green on black, red comments, colored key words... etc etc. Some of this is set in my 'terminal preferences', and some is in my ~/.emacs file (see below). When I run emacs from screen, the basic color-scheme is the same (green on black), but the coloring is different (e.g. comment characters are red, but not the entire comments) -- and really

How to Change the Default Editor for Git [duplicate]

与世无争的帅哥 提交于 2020-01-31 02:39:11
问题 This question already has answers here : How do I make Git use the editor of my choice for commits? (21 answers) Closed 5 years ago . I just started using git about a month ago. It was set up for me using TextMate as my default editor for commits. However, I'd like to switch the default to TextWrangler which I already have installed. I looked around online and found a line of code to type into the terminal to do this. So I opened the terminal and typed: cd Desktop cd "projectName" git config

How to Change the Default Editor for Git [duplicate]

早过忘川 提交于 2020-01-31 02:34:06
问题 This question already has answers here : How do I make Git use the editor of my choice for commits? (21 answers) Closed 5 years ago . I just started using git about a month ago. It was set up for me using TextMate as my default editor for commits. However, I'd like to switch the default to TextWrangler which I already have installed. I looked around online and found a line of code to type into the terminal to do this. So I opened the terminal and typed: cd Desktop cd "projectName" git config

How to run “nvm” in “oh my zsh”?

≯℡__Kan透↙ 提交于 2020-01-30 14:15:36
问题 In the system there is a nodejs , installed through nvm . The command is not running npm . Console is Oh my zsh 回答1: You can use zsh-nvm or enable it yourself by adding following lines to your ~/.zshrc export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" Extra: For faster shell initialization, I use lazynvm which only loads node when needed lazynvm() { unset -f nvm node npm export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm } nvm() {

How to run “nvm” in “oh my zsh”?

六月ゝ 毕业季﹏ 提交于 2020-01-30 14:15:07
问题 In the system there is a nodejs , installed through nvm . The command is not running npm . Console is Oh my zsh 回答1: You can use zsh-nvm or enable it yourself by adding following lines to your ~/.zshrc export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" Extra: For faster shell initialization, I use lazynvm which only loads node when needed lazynvm() { unset -f nvm node npm export NVM_DIR=~/.nvm [ -s "$NVM_DIR/nvm.sh" ] && . "$NVM_DIR/nvm.sh" # This loads nvm } nvm() {

.bash_profile and terminal

北慕城南 提交于 2020-01-30 13:20:57
问题 my .bash_profile looks this way : When I open my terminal I get this three lines : -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier What should I remove from my .bash_profile to get rid of this ? 回答1:

.bash_profile and terminal

寵の児 提交于 2020-01-30 13:20:28
问题 my .bash_profile looks this way : When I open my terminal I get this three lines : -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier -bash: export: Workbooks.app/Contents/SharedSupport/path-bin': not a valid identifier What should I remove from my .bash_profile to get rid of this ? 回答1:

Ansi colours on Windows 10, sort of not working

大憨熊 提交于 2020-01-30 05:01:11
问题 Console with colours is fairly new and exciting for Windows :-) I wrote some programs that printed using the ansi colour escapes and all was good ... ... then suddenly it stopped working. Or at least stopped on my laptop, Windows 10.0.14393 The app that fails on my machine does so in a console that a nodejs app has displayed colour in, the same binary runs with the correct colour on another laptop. golang fmt.Println("\033[31mSome Text\033[0m") left-top, console node output, left-bottom, my

How to make git-log scroll up instead of down

牧云@^-^@ 提交于 2020-01-29 14:30:27
问题 Whenever I view a git log --all --graph --oneline --decorate output in my terminal emulator, the first commit is viewed at the top of the terminal screen. When I quit the git log output view with q , a few lines from the are not visible any more, as there are some new lines appended to the bottom of the screen, for the next command. Usually though, those top lines are the most interesting, as they resemble the most recent git history, so I want them to be still visible when I type the next

How to make git-log scroll up instead of down

非 Y 不嫁゛ 提交于 2020-01-29 14:28:27
问题 Whenever I view a git log --all --graph --oneline --decorate output in my terminal emulator, the first commit is viewed at the top of the terminal screen. When I quit the git log output view with q , a few lines from the are not visible any more, as there are some new lines appended to the bottom of the screen, for the next command. Usually though, those top lines are the most interesting, as they resemble the most recent git history, so I want them to be still visible when I type the next