Long commands wrapping in terminal [closed] - macos

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
I'm using a custom prompt from my bash_profile and when I type long commmands into the terminal they wrap on the same line instead of on a new one. What's up with that?
Cyan='\e[0;36m' # Cyan
export PS1="${Cyan}\w$ \e[m"

You have to surround nonprinting characters with \[ and \]:
PS1='\[\e[0;36m\]\w$ \[\e[m\]'

Related

Gantry and less variables how to bridge the gap? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 8 years ago.
Improve this question
Is there a way to update a variables.less file with variables from the user selection area in the backend? such as template-options.xml
or can it only be made inline through a styledeclaration.php?
You should read http://gantry-framework.org/documentation/joomla/advanced/less_css.md
You should write a PHP that reads your template-options.xml and create a /less/[LESS_FILE_NAME]-custom.less file with your variables, or pass your variables as an array into the $gantry->addLess() function.

Unix: Trying to increment a calender year and display [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 9 years ago.
Improve this question
I have a unix assignment and What I have isnt working right. It doesnt format like the normal "cal" function.
#!/bin/bash
d=`date '+%Y'`;
$((++d));
calstr=`cal $d`;
echo $calstr;
You don't need the $ in line 2, and you need to wrap the $calstr in double quotes:
#!/bin/bash
d=`date '+%Y'`;
((++d));
calstr=`cal $d`;
echo "$calstr";

How to make a KornShell script to go to new line [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
How can I make a KornShell (ksh) script go to new line when I am typing in the terminal? It is currently going to the end of the current line.
Use the multiline option:
set -o multiline

How to rename folders in Windows 7: command line that have spaces in the name [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
How do I rename a path that has spaces in it under Windows 7?
Command line:
rename c:\ho hum\new folder -> c:\ho_hum\new_folder
This can only be done by moving the folder and set a new name for the destination:
move "c:\ho hum\new folder" "c:\ho hum\new_folder"
move "c:\ho hum" "c:\ho_hum"

How to write a path with LaTeX? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
How can I write a path with LaTeX? I want something like this:
C:\\Program Files\\My Program\\my file.txt
I have to use double slashes, not single ones.
Found this:
How does one insert a backslash or a tilde into Latex
The Comprehensive LaTeX Symbol List is your friend. \textbackslash and \textasciitilde are found in Table 2 of the list
So you should try
C:\textbackslash\textbackslash Program Files\textbackslash\textbackslash My Program\textbackslash\textbackslash my file.txt

Resources