Fish shell configuration with some useful plugins and keybindings + custom theme.
Currently only default plugins are used, so this setup isn’t bloated.
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.
There are two possible options to install this dotfiles:
- Via
make
(notice that you’ll need to installmake
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
Alias | Description |
---|---|
em | Open emacsclient in terminal |
dbx | Distrobox with TERM=xterm-256color set up |
ssh | ssh with TERM=xterm-256color set up |
- fzf
These shortcuts are tightly inspired by emacs and thus are similar (M
stands for Alt
and C
is for Control
)
Key | Description |
---|---|
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-a | Move cursor to the beginning of line |
C-e | Move cursor to the end of line |
C-p / <up-arrow> | Backward search in history |
C-n / <down-arrow> | Forward search in history |
C-SPC | Set mark |
C-x C-x | Swap 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-d | Delete word after cursor |
C-k | Delete line from cursor to the end of line |
C-x C-u | Upcase word after cursor |
C-x C-l | Downcase word after cursor |
C-/ / M-/ | Undo/Redo |
TAB | Enable completion |
C-x C-e | Open editor for command |
C-g | Send break |
M-w | Copy (to system clipboard) |
C-y | Paste (from system clipboard) |
C-r | Fuzzy history search via fzf plugin |
C-M-f | Search directory with fzf |
C-M-l | Search git log with fzf |
C-M-s | Search git status with fzf |
C-v | Search shell variables with fzf |