How can I get my PS1 prompt to show time, user, host, directories, and Git branch
I’ve seen others add all this information to their PS1 prompt.
I’ve seen others add all this information to their PS1 prompt.
I am trying to list all the files from dir1, dir2, dir3 and dir4 which might be anywhere in as a sub directory of my cwd using the find command. I tried the following with no success:
When I try to run the following command:
I’m getting used to vim bindings (like pressing w to go to word, dw to delete a word, and such) and it’s modes (insert, normal, visual), and, out of curiosity would like to know: is there some kind of implementation of this behaviour of modes and bindings from vim to my terminal?
I am using Ubuntu 14.04 . I want to change the http proxy settings from the command line. This should be equivalent to changing in the GUI(All Settings->Network->Network Proxy) and clicking the button Apply System Wide. I don’t want to restart/logout the system as I am planning to change the settings dynamically from a script(bash).
I was studying code in which the at command is used. I looked around and found that it is used to execute batch jobs. It is used to schedule jobs. It is given, as its input, a command, and a time, relative or absolute.
export does set the $PATH explicitly.
I heard about “useless use of cat” and found some suggestions, but the following outputs nothing in my bash shell.
I use Dvorak and vi, so when I found out about the vi mode in Bash, I was very excited. However, it would be even better if I could remap the movement keys to be the ones that I use in vi (I swap keys around until the movement keys are back on the home row in Dvorak).
I’m writing a bash script, and need to ask user for his password and pass it to openssl. Whilst openssl can read the password itself, I need for two runs of the program and don’t want to ask the user twice. Here is the script: