8000 GitHub - silverneko/dotfiles: My dotfiles
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

silverneko/dotfiles

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Dotfiles

git clone --depth 1 git@github.com:silverneko/dotfiles.git ~/.dotfiles
# or
git clone --depth 1 https://github.com/silverneko/dotfiles.git ~/.dotfiles
link-dot() { [ -e "$2" ] && (set -x; mv "$2" "$2".old); mkdir -p $(dirname "$2"); (set -x; ln -s ~/.dotfiles/"$1" "$2") }
link-dot zsh/.zshenv ~/.zshenv
link-dot vim ~/.vim
link-dot tmux.conf ~/.tmux.conf
link-dot wezterm ~/.config/wezterm
link-dot ghostty ~/.config/ghostty
link-dot lfrc ~/.config/lf/lfrc
unset -f link-dot

Shell and utilities

sudo apt install fd-find ripgrep bat lsd

tmux

git clone https://github.com/tmux-plugins/tpm ~/.tmux/plugins/tpm
  • Prefix + I to Install plugins.
  • Prefix + U to Update plugins.

git

# Show untracked stash
git config --global stash.showIncludeUntracked true
# If git-status is slow, try this
git config --global core.untrackedCache true

Fzf

Install and upgrade fzf with vim-plug.

# [ -e ~/.fzf ] || git clone --depth 1 https://github.com/junegunn/fzf.git ~/.fzf
# cd ~/.fzf && git pull && ./install

Vim

Dependencies

  • vim 9.1+ (bleeding edge)

vim-plug

Update plugins:

:PlugInstall  " Install new plugins only
:PlugUpdate

Update vim-plug itself:

:PlugUpgrade

Key mappings

  • Normal

    • CTRL-P Pick file
    • CTRL-B Pick buffer
    • CTRL-E CTRL-6 Edit alternate buffer
    • CTRL-↑ CTRL-U Scroll up
    • CTRL-↓ CTRL-D Scroll down
    • - [Dirvish] List parent dir of current file
    • [t / ]t Go to previous / next tab
    • [T / ]T Go to first / last tab
    • <Alt-Right> Move tab to the right
    • <Alt-Left> Move tab to the left
  • Command

    • CTRL-F Edit commandline
    • :MRU Pick :oldfiles
  • Insert

    • CTRL-E Cancel autocomplete
  • Visual

    • CTRL-C Copy selected text into system clipboard.

Hexmode

Simply editing a file in binary mode (eg. vim -b some_file.jpg) will automatically convert it into hex. Or use :Hexmode to switch between hex editing and normal editing.

About

My dotfiles

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0