terminal

Open Sublime Text from Terminal in macOS

妖精的绣舞 提交于 2019-12-17 04:11:16
问题 In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 回答1: I finally got this to work on my OSX box. I used these steps to get it to work: Test subl from your ST installation: First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.app in the command

Open Sublime Text from Terminal in macOS

若如初见. 提交于 2019-12-17 04:09:02
问题 In Terminal when I use .subl It returns -bash: .subl: command not found Anyone know how to open Sublime Text 3 from the command line in macOS? 回答1: I finally got this to work on my OSX box. I used these steps to get it to work: Test subl from your ST installation: First, navigate to a small folder in Terminal that you want ST to open and enter the following command: /Applications/Sublime\ Text.app/Contents/SharedSupport/bin/subl . NOTE: You may need to replace Sublime\ Text.app in the command

Why does Ctrl+. not work when I bind it to a command in Emacs?

送分小仙女□ 提交于 2019-12-17 04:02:02
问题 C-. doesn't work in the terminal when I bind it to a command in Emacs. I tried this procedure on gnome-terminal and real terminal tty1. I start Emacs with the -nw flag, then press C-h k (the command for describe-key ), then press C-. . Emacs only receives the . , without the Ctrl . How do I get this working in Emacs? I'm binding keys with this process: (define-key c-mode-base-map (kbd "C-.") 'semantic-ia-fast-jump) or (define-key c-mode-base-map [(control .)] 'semantic-ia-fast-jump) 回答1: In

Is there a better Windows Console Window? [closed]

眉间皱痕 提交于 2019-12-17 02:53:03
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not

Is there a better Windows Console Window? [closed]

末鹿安然 提交于 2019-12-17 02:52:07
问题 As it currently stands, this question is not a good fit for our Q&A format. We expect answers to be supported by facts, references, or expertise, but this question will likely solicit debate, arguments, polling, or extended discussion. If you feel that this question can be improved and possibly reopened, visit the help center for guidance. Closed 6 years ago . Locked . This question and its answers are locked because the question is off-topic but has historical significance. It is not

What's the simplest way of detecting keyboard input in python from the terminal?

末鹿安然 提交于 2019-12-16 22:45:33
问题 I have a simple python script, that has some functions that run in a loop (I'm taking sensor readings). while True: print "Doing a function" If the keyboard is pressed I'd like to print "key pressed". What's the simplest way of doing this in Python? I've searched high and low. I've found out how to do it with pygame, but I'd rather do it without. If I do have to use pygame is it possible to not have a separate window for the application?: import pygame, time from pygame.locals import * pygame

Access pybossa database through terminal

让人想犯罪 __ 提交于 2019-12-16 18:03:50
问题 the thing is tath i had pybossa installed with vagrant and juju, so when i've tried to access to posgresql prompt it says no postgresql installed which is not possible cause pybossa is already in production so taths the reason i cannot even try to do a import-export dump file from database directly so how can i do it, i know how to do it from a normal installation but instead in a vagrant with juju a can't get inside the postgresql cause it says it is not installed, can anyone help me the

Gulp BrowserSync showing “reloading browsers” in Terminal, but not reloading the actual browser.

删除回忆录丶 提交于 2019-12-14 03:55:07
问题 I'm having an issue where my tasks are running as desired and BrowserSync seems to be working, but the actual browser isn't reloading. I'm getting the right messages in my Terminal to suggest everything is working as planned. I'm using MAMP for my local server which is serving a Wordpress build. I'm using Chrome v65 on a Mac. My gulpfile is below with a screenshot of my Terminal. Any ideas what might be causing this issue? // ===================================================================

python: why IDLE is slower than terminal?

核能气质少年 提交于 2019-12-14 03:50:05
问题 I just wrote a simple python command to check on a big list from a csv file. The csv has 2 columns with 10K lines. when I input the 2nd row into a list and later print the list, it takes the IDLE quite some time to show it where the terminal (under mac) shows it promptly. *BTW, I checked it on 2 different machines - same result. Obviously, no one will print 10k items on a console but the idea that one is significantly faster than the other makes me wonder: why IDLE which supposed to be python

bash read is being skipped when run from curl pipe

元气小坏坏 提交于 2019-12-14 03:45:57
问题 I'm building a bootstrap for a github project and would like it to be a simple one-liner. The script requires a password input. This works and stops the script to wait for an input: curl -s https://raw.github.com/willfarrell/.vhosts/master/setup.sh -o setup.sh bash setup.sh This does not, and just skips over the input request: curl -s https://raw.github.com/willfarrell/.vhosts/master/setup.sh | bash setup.sh contains code is something like: # code before read -p "Password:" -s password # code