VasKho / fish-config

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

fish-config

Fish shell configuration with some useful plugins and keybindings + custom theme.

Currently only default plugins are used, so this setup isn’t bloated.

Installation

Requirements

To get fully working setup one needs to install the following packages

  • fzf
  • neovim
  • git
  • fd
  • bat

Run make check to find if they all are present in your system.

Quick start

There are two possible options to install this dotfiles:

  • Via make (notice that you’ll need to install make package as well in order to do so)
    make install
    # to uninstall run the following command
    # make uninstall
        
  • Manually Clone this repository to $HOME/.config/fish
    git clone https://github.com/VasKho/fish-config ~/.config/fish
        

Aliases

AliasDescription
emOpen emacsclient in terminal
dbxDistrobox with TERM=xterm-256color set up
sshssh with TERM=xterm-256color set up

Plugins

  • fzf

Keybindings

These shortcuts are tightly inspired by emacs and thus are similar (M stands for Alt and C is for Control)

KeyDescription
C-f / <right-arrow>Forward char
C-b / <left-arrow>Backward char
M-f / C-<right-arrow>Forward word
M-b / C-<left-arrow>Backward word
C-aMove cursor to the beginning of line
C-eMove cursor to the end of line
C-p / <up-arrow>Backward search in history
C-n / <down-arrow>Forward search in history
C-SPCSet mark
C-x C-xSwap current position and selection start
C-d / <del>Delete char after cursor
<backspace>Delete char before cursor
M-<backspace> / C-<backspace>Delete word before cursor
M-dDelete word after cursor
C-kDelete line from cursor to the end of line
C-x C-uUpcase word after cursor
C-x C-lDowncase word after cursor
C-/ / M-/Undo/Redo
TABEnable completion
C-x C-eOpen editor for command
C-gSend break
M-wCopy (to system clipboard)
C-yPaste (from system clipboard)
C-rFuzzy history search via fzf plugin
C-M-fSearch directory with fzf
C-M-lSearch git log with fzf
C-M-sSearch git status with fzf
C-vSearch shell variables with fzf

About

License:GNU General Public License v3.0


Languages

Language:Shell 90.9%Language:Makefile 9.1%