How can I change the color of my prompt in zsh (different from normal text)?

Put this in ~/.zshrc: autoload -U colors && colors PS1=”%{$fg[red]%}%n%{$reset_color%}@%{$fg[blue]%}%m %{$fg[yellow]%}%~ %{$reset_color%}%% ” Supported Colors: red, blue, green, cyan, yellow, magenta, black, & white (from this answer) although different computers may have different valid options. Surround color codes (and any other non-printable chars) with %{….%}. This is for the text wrapping to work correctly. Additionally, … Read more

Run Command Prompt Commands

this is all you have to do run shell commands from C# string strCmdText; strCmdText= “/C copy /b Image1.jpg + Archive.rar Image2.jpg”; System.Diagnostics.Process.Start(“CMD.exe”,strCmdText); EDIT: This is to hide the cmd window. System.Diagnostics.Process process = new System.Diagnostics.Process(); System.Diagnostics.ProcessStartInfo startInfo = new System.Diagnostics.ProcessStartInfo(); startInfo.WindowStyle = System.Diagnostics.ProcessWindowStyle.Hidden; startInfo.FileName = “cmd.exe”; startInfo.Arguments = “/C copy /b Image1.jpg + Archive.rar … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)