zsh
zsh alias within function
Good morning, In zshell I have an alias as follows: alias foo=\'echo FooBar!\' Which of course works fine.[详细]
2022-12-28 13:49 分类:问答Autocompletion based on filenames in a directory
I want to have a function in my zsh for faster accessing my todo-files. It s开发者_高级运维hould look inside the folder ~/tasks where i put my todo-lists and stuff. Now i want to type task p and when[详细]
2022-12-27 18:37 分类:问答Zsh: how to see all buffers?
You can push thi开发者_开发技巧ngs to buffer with ^Q and pop them with ESC-g. Alt+x vi-set-buffer changes buffer somehow. How can I see all the buffers? They are probably some files to look at.^Q (and[详细]
2022-12-27 14:12 分类:问答ZSH: how can I run Vim-style substitute command in command line?
I forgot the array syntax while on Zsh-commandline: $ hello=[1,2,3,4] %ERR: I want to fix the problem开发者_开发问答 by substitution. In Vim, I would do :.s@,@ @g.[详细]
2022-12-27 14:09 分类:问答bind key to complete filename wherever the context is in Zsh
Sometimes I want a filename instead of what zsh guesses for me. For example, I have a PNG file without a proper .png suffix, which开发者_StackOverflow社区 makes zsh think it isn\'t a picture and won\'[详细]
2022-12-27 11:11 分类:问答Is there a way to switch Bash or zsh from Emacs mode to vi mode with a keystroke?
I\'d like to be able to switch temporarily from emacs mode to vi mode, since vi mode is sometimes better, but I\'m usually half-way through typing something before I realize I want to use vi mode.[详细]
2022-12-27 10:42 分类:问答How to remove the file extension in a zsh completion?
I want to adjust zsh so that I can开发者_JS百科 tab complete: myprog <tab> using all *.foo files in ~/somedir, but have it so that it displays them without the .foo extension.[详细]
2022-12-24 02:03 分类:问答zsh make **/*.cpp **/*.cxx **/*.hpp not result in error
I have \"v\" aliased to \"vim **/*.cpp **/*.hpp **/*.cxx\" Problem is, if I\'m in a directory without any *.cxx files, zsh treats this as an error. Is there anyway 开发者_开发问答to tell zsh to creat[详细]
2022-12-22 20:30 分类:问答How to let putty change its cursor shape accordingly?
When I use putty to log on to a bash shell, I want it like real term emulator in Linux. That means: I开发者_如何学Cf I set shell to vi editing mode, the cursor would be a vertical line in inserting mo[详细]
2022-12-22 06:47 分类:问答What does ${#${(S%%)string//(\%([KF1]|)\{*\}|\%[Bbkf])}} mean
I found this in the adam2 zsh prompt, and I have no idea what it means.Apparently it counts the length of the \"string\", but how it does that is beyond me.[详细]
2022-12-20 01:05 分类:问答