| Title: My zsh cheat sheet | |
| Author: Solène | |
| Date: 03 May 2016 | |
| Tags: cheatsheet zsh | |
| Description: | |
| I may add new things in the future, as they come for me, if I find new | |
| features useful. | |
| subfolder you can use the following syntax. Using ****** inside a | |
| pattern while do a recursive globbing. | |
| ls **/*.lisp | |
| temporary files, zsh can do it for you with the following syntax: | |
| **=(command that produces stdout)**. | |
| 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. | |
| 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 | |