Skip to content

CharlesGueunet/zsh-config

Repository files navigation

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)

Copyright

This git is mainted by Charles Gueunet <[email protected]>

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/.

About

Custom zsh config based on zplug/zprezto

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages