Questions tagged [zsh]
Zsh is a shell designed for interactive use, although it is also a powerful scripting language.
20 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
4
votes
1
answer
80
views
2
votes
0
answers
75
views
Replace real path with symlink
zoxide is a replacement for cd that allows fuzzy matching against commonly accessed directories (e.g., ...
9
votes
2
answers
1k
views
My ~/.zprofile (paths, configuration and env variables)
This is my .zprofile, it recently got nuked so I remade it. I made it clearer and better then my previous .zprofile and then I ...
3
votes
1
answer
58
views
DmenuWacom: a front hand for wacom tablets
DmenuWacom
During my raids, I came across and solved several problems, obviously in my style, very similar to the suckless.org approach and which still works quite well. In fact, I started writing a ...
3
votes
1
answer
169
views
zsh function for shrinking $PWD with $HOME replacement
I wanted a $PWD shrinking for my $PROMPT with the following requirements:
$HOME is replaced ...
1
vote
1
answer
97
views
Updated bash/zsh function that cd to the root of git tree
here's the updated version of the code for being reviewed. Fixes:
"private" _cg function
functions definition as ...
2
votes
0
answers
61
views
Bulk File Rename; Improved Safety and Performance
A function that funnels all filenames into a file and opens that file in vim. The user then changes the names, saves, and quits. Finally the function renames the files in the folder with the new names ...
user avatar
user85459
3
votes
1
answer
122
views
2
votes
1
answer
61
views
Finding (and counting) duplicate JS/Java files
I have the following script which takes minutes to give output.
...
3
votes
0
answers
261
views
Colorized zsh prompt with support for Virtualenv and Git
I took the agnoster theme and re-wrote it to this:
...
user avatar
user98809
2
votes
0
answers
164
views
Chip-8 Emulator in Zsh
I've spent the last few weeks writing a Chip-8 emulator in zsh. It doesn't run in bash but the syntax is nearly identical. I have it on a GitHub repo here: https://github.com/hcorion/chipzsh a ...
3
votes
2
answers
451
views
Pathmunge function in zsh
pathmunge is an often-seen function in shell initialization files, used to add entries to the PATH environment variable without ...
5
votes
1
answer
126
views
`ls` indicates when directory is empty/full of dotfiles
I want ls to print a message when run on an empty or full of dotfiles directory. Instead of:
$ ls empty_dir/ dotfiles/
$
I ...
2
votes
1
answer
75
views
Sort and source configuration files from one of two directories
In a zsh I want to loop over all files in a configuration files' directory (/etc/myapp/) to source them. The files should be sourced in order and are named with two ...
2
votes
1
answer
197
views
Shell agnostic startup flow - env, profile, rc, login
The goal of these files is to have some common behavior between Bash and Zsh
when starting them. As is known, when Bash starts as a login shell it will
source the first found of the following in your ...