zsh
How do zsh ansi colour codes work?
I want to make my hostname in my terminal 开发者_Python百科orange. How do I do that?Running the following code in your terminal should tell you whether your terminal supports 256 colors.[详细]
2023-03-09 08:50 分类:问答How to handle "--" in the shell script arguments?
This question has 3 parts, and each alone is easy, but combined together is not trivial (at least for me) :)[详细]
2023-03-08 02:11 分类:问答Is there a way to wrap arbitary commands located under a subdirctory in a shell script
I have a bunch of customizations and would like to run my test program in a pristine environment. Su开发者_Go百科re I could use a tiny shell script to wrap and pass of arguments but it would be cool a[详细]
2023-03-04 18:22 分类:问答Bash/zsh: get substring from the last match in a string
In a shell script I have a variable $PATH which could look like this: /foo8232/test874-ab/bar/test-82-x. I now want to get a substring of this, getting as a result test-82-x in this specific case.[详细]
2023-03-03 22:01 分类:问答SVN over a directory that already exists
I\'ve been reading about using a zsh template file on a scientific computing website. I\'ve never used subversion before but am attempting to learn how to do so. Anyhow, they have a repository on Goog[详细]
2023-02-25 03:19 分类:问答Get the `pwd` in an `alias`?
Is there a way I can get the pwd in an alias in my .zshrc file? I\'m trying to do something like the following:[详细]
2023-02-22 16:57 分类:问答Execute a script when moving to it's dir?
I\'m playing around with virtualenv and pip, but I find it quite restrictive to have to \"source bin/activate\" each time I come into a virtualenv dir.[详细]
2023-02-21 19:06 分类:问答Zsh zle shift selection
How to use shift to select part of the co开发者_JAVA技巧mmandline (like in many text editors) ?Expanding on Stephane\'s excellent answer from almost 3 years ago, I added some more bindings to make the[详细]
2023-02-19 11:12 分类:问答weird rvm list output
I\'m getting this error when i do \'rvm list\' command. I\'m using oh-my-zsh, but loading it both in bash and zsh, I\'m still getting the same error.[详细]
2023-02-17 20:51 分类:问答Interpret zsh bindkey escaped sequences
I usually find interesting zsh keybinding settings (through bindkey command) around the web. My question is how do I interpret what these escaped sequences mapped to? For instance, here is a snippet f[详细]
2023-02-17 10:58 分类:问答