💾 Archived View for perso.pw › blog › articles › zsh.gmi captured on 2024-02-05 at 10:25:32. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-05-24)
-=-=-=-=-=-=-
I may add new things in the future, as they come for me, if I find new
features useful.
repeat 5 curl http://localhost/counter_add.php
If you want to find every file ending by .lisp in the folder and
subfolder you can use the following syntax. Using ****** inside a
pattern while do a recursive globbing.
ls **/*.lisp
If you want to work on some command outputs without having to manage
temporary files, zsh can do it for you with the following syntax:
In the example we will use emacs to open the list of the files in our
personal folder.
emacs =(find ~ -type f)
This syntax will produce a temp file that will be removed when emacs
exits.
here is my ~/.zshrc, very simple (I didn't pasted the aliases I have),
I have a 1000 lines history that skips duplicates.
HISTFILE=~/.histfile
HISTSIZE=1000
SAVEHIST=1000
setopt hist_ignore_all_dups
setopt appendhistory
bindkey -e
zstyle :compinstall filename '/home/solene/.zshrc'
autoload -Uz compinit
compinit
export LANGUAGE=fr_FR.UTF-8
export LANG=fr_FR.UTF-8
export LC_ALL=fr_FR.UTF-8
export LC_CTYPE=fr_FR.UTF-8
export LC_MESSAGES=fr_FR.UTF-8