my zsh config
Go to file
Charles Gueunet 82bc3a7a93 Command update: nb, exa -> eza 2023-09-25 10:08:11 +02:00
bin Command update: nb, exa -> eza 2023-09-25 10:08:11 +02:00
extra Keep elder starship 2021-11-16 22:52:41 +01:00
notify@eb389765cb Add gitmux 2021-05-11 22:37:44 +02:00
share/kcr kcr static 2021-03-10 12:44:09 +01:00
.gitmodules feat(notify): on long and failed commands 2020-02-20 09:02:55 +01:00
.zshrc Command update: nb, exa -> eza 2023-09-25 10:08:11 +02:00
LICENSE release(Prepare): add LICENSE file 2018-05-01 12:04:04 +02:00
LS_COLORS style(ls): improve colors 2019-04-03 10:44:58 +02:00
README.md doc(Misc): some other cool shortcut not to forget 2018-10-12 15:46:36 +02:00
fzf_binding.zsh fix(FPATH): for user change + file permition 2018-04-25 13:19:01 +02:00
gpl.txt fix(FPATH): for user change + file permition 2018-04-25 13:19:01 +02:00
kak-mode.zsh Create file if needed for kak 2023-01-30 12:04:13 +01:00
plugins_conf.zsh fzf ignore 2022-04-04 13:51:49 +02:00
plugins_list.zsh Colors 2021-09-27 23:35:07 +02:00

README.md

Customizable zsh configuration using zplug, perzto, grml and fzf.

CHANGELOG

  • Use zplug to manage plugins
  • Change .zshrc.postconf to zshrc_custom.zsh

INSTALL

Define $ZDOTDIR as your convenience.

cd
ZDOTDIR=${HOME}/.zsh
git clone --recursive https://github.com/CharlesGueunet/zsh-config.git $ZDOTDIR
ln -s ${ZDOTDIR}/.zshrc .

You can copy your old ~/.zhistory in the $ZDOTDIR folder if you want to keep your old history. Then, (re)start zsh.

Update

In your shell:

cd $ZDOTDIR
git pull       # update from git
plugins update # update plugins
sz             # re-interpret the .zshrc

CUSTOMIZE

Plugins

  • $ZDOTDIR/plugins_custom_list.zsh: add new plugins. For the syntax, see the zplug website of the plugins_list.zsh file.
  • $ZDOTDIR/plugins_custom_conf.zsh: overwite and add plugins configuration.

Global zsh

  • $ZDOTDIR/zshrc_custom.zsh: overwrite and add global zsh configurations.

USAGE

Travel

When changing directory, .. will go to the parent directory. If you type ... it will be transformed automatically into ../.. and each . you add will be transformed into ../ for a fast traversal.

Ctrl-v will open vifm (if installed), a ncurse based file manager based on vim.

Commands

popd   # undo a directory change
cd +N  # make N undo directory change
cdt    # go to a temporary directory
plugins update # Update plugins

Vim mode

Normal and Insert modes works just like in Vim. In Normal mode, v let you edit the command inside vim

Shortcuts

  • FZF :
    • Ctrl-r fuzzy navigate history
    • Ctrl-t fuzzy find a file / folder
    • Alt-c fuzzy change current directory
  • Completion
    • Ctrl-f complete next suggested word
    • Ctrl-y complete with the whole suggestion
    • Ctrl-p/n navigate through last version of this command
    • Ctrl-Space same as tab
    • Ctrl-g substiture in last command
  • Misc
    • v in normal mode to edit inside vim
    • Ctrl-q to enter a command in a temporary promt (recover your input after)

This git is mainted by Charles Gueunet <charles.gueunet+zsh@gmail.com>

Copyright (C) 2016 Charles Gueunet

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.