terminal

VS Code terminal (selected) text background color

大憨熊 提交于 2020-08-04 05:11:32
问题 Working with VS code's terminal is just fine but somehow (all) text is hardly readable without peeking my nose to the screen. Anybody knows a setting to change this? EDIT This isn't like this question because that deals with the overall theming of VS Code instead of purely the colors in the terminal window. Although a link in a comment seems to point out that it is no longer possible to style the terminal colors "outside of an applied theme..."?! Still no luck... 回答1: Use these options inside

How can I check the available shells in Mac OSX?

自作多情 提交于 2020-08-02 05:12:05
问题 How can I check all the different shells that I can use in OSX Terminal application? The default one is bash, and I know zsh because I tried and it worked. I wonder how can I check if there are any more than this two. 回答1: The easy way is go to /etc and check the shells file. The content is the list of shells available in Mac OSX. The included by default are: /bin/bash /bin/csh /bin/ksh /bin/sh /bin/tcsh /bin/zsh Alternatively, you can check their binaries by going to /bin and recognising

Autocomplete git in mac OS not working?

你离开我真会死。 提交于 2020-07-31 07:37:07
问题 I am using git in mac. I am trying to have the autocomplete feature. I followed these steps (http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/) but I get this error, any idea? : command not found -bash: /Users/me/git-completion.bash: line 80: syntax error near unex'ected token in -bash: /Users/me/git-completion.bash: line 80: case "$COMP_WORDBREAK'" in 回答1: I had tried to use curl -O but the url was wrong and I ended up copying the text which caused the error. Using this

Autocomplete git in mac OS not working?

ぃ、小莉子 提交于 2020-07-31 07:36:39
问题 I am using git in mac. I am trying to have the autocomplete feature. I followed these steps (http://www.codethatmatters.com/2010/01/git-autocomplete-in-mac-os-x/) but I get this error, any idea? : command not found -bash: /Users/me/git-completion.bash: line 80: syntax error near unex'ected token in -bash: /Users/me/git-completion.bash: line 80: case "$COMP_WORDBREAK'" in 回答1: I had tried to use curl -O but the url was wrong and I ended up copying the text which caused the error. Using this

How do I set default terminal to terminator? [closed]

删除回忆录丶 提交于 2020-07-31 06:12:19
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question Using Xubuntu. I'd like to have terminator replace the default terminal. For instance, when right-clicking inside a folder then selecting open terminal, I'd like Terminator to open instead of the default. How can I achieve this ? 回答1: From within a terminal, try

How do I set default terminal to terminator? [closed]

浪尽此生 提交于 2020-07-31 06:11:32
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . Improve this question Using Xubuntu. I'd like to have terminator replace the default terminal. For instance, when right-clicking inside a folder then selecting open terminal, I'd like Terminator to open instead of the default. How can I achieve this ? 回答1: From within a terminal, try

Using gnuplot to create data files

假如想象 提交于 2020-07-30 03:44:48
问题 Hey guys I am currently working with gnuplot. I have this .csv file which I have been using to plot some formulas (eg plot "filename.csv" u 0:day($0) = $0 ). The plots worked out; however, I was wondering if there was a way within gnuplot to save the output of my formulas as a data file too. 回答1: Please check the manual or in the gnuplot console type help table . Code: ### save data as text reset session f(x) = x g(x) = x**2 h(x) = x**3 set xrange[-5:5] set samples 11 plot f(x) w lp, g(x) w

How to to execute a dialog command, and have it return to the original screen?

时光怂恿深爱的人放手 提交于 2020-07-29 07:32:54
问题 Newbie here, not sure how to ask this. Short version What is the trick to execute a shell command, upon finishing, it will return to the original screen? Long version I am wring a shell script using dialog , say it will open a console based UI, then when I exit it, it will looks like: $ ./run_a_script_containing_dialog.sh ++++++++++++++++++++++++++++++++++++++ +....... ++++++++++++++++++++++++++++++++++++++ ++++++++++++++++++++++++++++++++++++++ ++++++ A BLUE BACKGROUND DIALOG ++++++ ++++++++

How do I copy a file to the clipboard in the terminal (linux) [closed]

99封情书 提交于 2020-07-23 06:37:24
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 days ago . Improve this question I would like to copy a file to the clipboard with the terminal, like when right clicking a file and selecting "copy" in the gui. Someting like "cp test.txt" (without a destination) so whenever I want, I could right click and paste the file (or files) in the gui.

How do I copy a file to the clipboard in the terminal (linux) [closed]

橙三吉。 提交于 2020-07-23 06:35:56
问题 Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 10 days ago . Improve this question I would like to copy a file to the clipboard with the terminal, like when right clicking a file and selecting "copy" in the gui. Someting like "cp test.txt" (without a destination) so whenever I want, I could right click and paste the file (or files) in the gui.