my zsh config
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
Charles Gueunet ca53fd117a LSP markdown 15 hours ago
bin LSP markdown 15 hours ago
extra Keep elder starship 11 months ago
notify@eb389765cb Add gitmux 1 year ago
share/kcr kcr static 2 years ago
.gitmodules feat(notify): on long and failed commands 3 years ago
.zshrc LSP markdown 15 hours ago
LICENSE release(Prepare): add LICENSE file 4 years ago
LS_COLORS style(ls): improve colors 4 years ago
README.md doc(Misc): some other cool shortcut not to forget 4 years ago
fzf_binding.zsh fix(FPATH): for user change + file permition 4 years ago
gpl.txt fix(FPATH): for user change + file permition 4 years ago
plugins_conf.zsh fzf ignore 6 months ago
plugins_list.zsh Colors 1 year ago

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