Skip to main content
Code Review

Questions tagged [zsh]

Zsh is a shell designed for interactive use, although it is also a powerful scripting language.

Filter by
Sorted by
Tagged with
4 votes
1 answer
80 views

Simulating mv --backup=numbered with BSD mv

...
user avatar
user98809
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 ...
NFVblog's user avatar
  • 61
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 ...
kikito's user avatar
  • 186
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 ...
Felixoid's user avatar
  • 155
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

Bulk File Rename

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
2 votes
1 answer
61 views

Finding (and counting) duplicate JS/Java files

I have the following script which takes minutes to give output. ...
user3341592's user avatar
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 ...
muru's user avatar
  • 973
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 ...
aluriak's user avatar
  • 153
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 ...
pseyfert's user avatar
  • 145
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 ...
Captain Man's user avatar

15 30 50 per page
1
2

AltStyle によって変換されたページ (->オリジナル) /