command-prompt

emacs terminal bash (PS1) prompt duplicated

杀马特。学长 韩版系。学妹 提交于 2020-02-05 06:36:06
问题 This is a bit of a convoluted question, but here goes nothing! I've recently updated my bash prompt to the nice version appearing in the last post of this thread: Bash: custom PS1 with nice working directory path. The relevant bash code (from that thread post) is copied here: # define the awk script using heredoc notation for easy modification MYPSDIR_AWK=$(cat << 'EOF' BEGIN { FS = OFS = "/" } { if (length($0) > 16 && NF > 4) print $1,$2,".." NF-4 "..",$(NF-1),$NF else print $0 } EOF ) # my

Error: not recognized as an internal or external command

删除回忆录丶 提交于 2020-02-05 05:34:27
问题 I'm following instructions here to set up a sample: I'm at this step: Setup the sample with your project firebase use --add and follow the instructions. But, I get the following error in command prompt: I'm sure there's an easy fix, I'm just new. 回答1: First install nodejs at your system using https://nodejs.org/en/download/ Then using npm package manager which comes with nodejs; install firebase with the help of this url https://www.npmjs.com/package/firebase-tools 回答2: As Lalit said install

Retrieving git branch name in prompt or Android gradle: on Jenkins it returns HEAD

蓝咒 提交于 2020-02-03 08:39:29
问题 In gradle I'd like to add both the current branch-name and commit-number as suffix to my versionName. (Why? Because when I build my app in Jenkins to release it in HockeyApp, it's useful to show what branch & commit that app was built from!) So when I enter this in command prompt, my current branch name is returned: git rev-parse --abbrev-ref HEAD Same happens when I use this line in Android gradle, using the code in either this answer, or as shown in this piece of gradle code: def

Retrieving git branch name in prompt or Android gradle: on Jenkins it returns HEAD

て烟熏妆下的殇ゞ 提交于 2020-02-03 08:35:09
问题 In gradle I'd like to add both the current branch-name and commit-number as suffix to my versionName. (Why? Because when I build my app in Jenkins to release it in HockeyApp, it's useful to show what branch & commit that app was built from!) So when I enter this in command prompt, my current branch name is returned: git rev-parse --abbrev-ref HEAD Same happens when I use this line in Android gradle, using the code in either this answer, or as shown in this piece of gradle code: def

nested For loop in batch file error: Do was unexpected at this time

為{幸葍}努か 提交于 2020-02-02 16:07:30
问题 I am new to writing batch files. I am trying to do the following . Read line by line from file called list.txt which has two tokens which are space seperated and in the next for loop i am tokenizing and sending these tokens as parameters to another script. FOR /F %%i IN (C:\list.txt) DO FOR /F "tokens=1,2 delims= " %%A IN (%%i) DO winscp.com /script=C:\myscript1.txt /parameter %%A C:\%%B But I am getting the following error. Do was un expected at this time. Can some one explain what am I

.bat for batch rename to increment numbers in fname

北慕城南 提交于 2020-01-29 21:37:08
问题 I have a large folder of .cbr's, and I'm renaming them by issue number to correctly order them. What do I need to include in the ren line to have each file increment the number in the file name via windows command prompt? I'll be doing this frequently so I'll make this a .bat file. For example, where n = initial number and m = final number: n.cbr, (n+1).cbr, ..., (m-1).cbr, m.cbr The .bat thusfar: ren *.cbz *.cbr ren *.cbr <increment numbers n through m>.cbr Alternatively, how do I trim each

Installing pygame through pip error

被刻印的时光 ゝ 提交于 2020-01-24 22:46:05
问题 I'm trying to install pygame to work with python through pip, however when I use the command pip install pygame, it begins working and seems alright until it throws an error. This is the output I get, I'm not sure if i'm doing it correctly or what, I'm new to pip so I'm just not sure. Any help would be appreciated! C:\Users\Matthew>pip install pygame Collecting pygame Using cached pygame-1.9.2.tar.gz Complete output from command python setup.py egg_info: WARNING, No "Setup" File Exists,

DLL missing error when EXE run from command line [VS2010]

北城以北 提交于 2020-01-24 22:42:51
问题 So I built an SSH-connect-test console application using libssh library, and is dependent on ssh.dll. The application works perfectly fine when run from inside VS2010, but gives "ssh.dll missing from your computer. Reinstall the program" error when the same EXE is run from the command prompt. Any inputs as to why am I seeing this dual behaviour of the console application from inside and outside of VS2010? Thanks. 回答1: you should download ssh.dll by searching it in google .when the file

In PostgreSQL why does command line window disappear when I press Enter after entering my password?

流过昼夜 提交于 2020-01-24 14:16:26
问题 I installed PostgreSQL on my laptop today (running Windows 10) and I am trying to get started learning SQL. The PostgreSQL Installation Tutorial said to try connecting using command prompt, by opening psql.exe, so I did that, got the command window, and it asked me for my password. I entered that and pressed the Enter key -- and the window disappeared. Multiple times. The password is definitely correct. What did I do wrong? I've looked hard for info about this but have not found answers. I'm

In PostgreSQL why does command line window disappear when I press Enter after entering my password?

左心房为你撑大大i 提交于 2020-01-24 14:15:46
问题 I installed PostgreSQL on my laptop today (running Windows 10) and I am trying to get started learning SQL. The PostgreSQL Installation Tutorial said to try connecting using command prompt, by opening psql.exe, so I did that, got the command window, and it asked me for my password. I entered that and pressed the Enter key -- and the window disappeared. Multiple times. The password is definitely correct. What did I do wrong? I've looked hard for info about this but have not found answers. I'm