mirror of
https://github.com/olexsmir/dotfiles.git
synced 2026-01-15 08:41:34 +02:00
Update zsh, bspwm, nvim, vscode, tmux. Add fish
This commit is contained in:
parent
1f5249ea78
commit
53d009b671
14 changed files with 236 additions and 115 deletions
68
config/fish/config.fish
Normal file
68
config/fish/config.fish
Normal file
|
|
@ -0,0 +1,68 @@
|
|||
set -U fish_user_paths $HOME/bin $HOME/.yarn/bin $HOME/.applications $fish_user_paths
|
||||
set fish_greeting
|
||||
|
||||
## Variables
|
||||
set EDITOR "nvim"
|
||||
set VISUAL "nvim"
|
||||
|
||||
|
||||
## Key bindings
|
||||
function fish_user_key_bindings
|
||||
fish_default_key_bindings
|
||||
# fish_vi_key_bindings
|
||||
end
|
||||
|
||||
|
||||
## Colors
|
||||
set fish_color_normal brwhite
|
||||
set fish_color_autosuggestion '#DDDDDD'
|
||||
set fish_color_command brcyan
|
||||
set fish_color_error '#ff6c6b'
|
||||
set fish_color_param brwhite
|
||||
|
||||
|
||||
## Functions
|
||||
function backup --argument filename
|
||||
cp $filename $filename.bak
|
||||
end
|
||||
|
||||
function targz-this-folder --argument filename
|
||||
tar -czf $filename.tar.gz .
|
||||
end
|
||||
|
||||
function zip-this-folder --argument filename
|
||||
zip -r $filename.zip .
|
||||
end
|
||||
|
||||
function set-wallpaper --argument filename
|
||||
feh --bg-scale $filename
|
||||
end
|
||||
|
||||
function set-random-wallpaper
|
||||
feh --randomize --bg-scale ~/Pictures/wallp
|
||||
end
|
||||
|
||||
|
||||
## Plugins
|
||||
fundle plugin 'matchai/spacefish' # Prompt theme
|
||||
fundle plugin 'justinmayer/virtualfish' # Python venv support
|
||||
fundle plugin 'FabioAntunes/fish-nvm' # NVM status
|
||||
fundle plugin 'edc/bass' # Required for fish-nvm
|
||||
fundle plugin 'jorgebucaran/autopair.fish' # Brackets closer
|
||||
fundle init
|
||||
|
||||
|
||||
## Aliases
|
||||
alias cls="clear"
|
||||
alias mkdir="mkdir -p"
|
||||
alias cp="cp -r"
|
||||
alias du="du -sh"
|
||||
alias df="df -h"
|
||||
alias neovim='nvim'
|
||||
alias vim="nvim"
|
||||
alias vi="vim"
|
||||
alias tmux="tmux -2"
|
||||
alias :q="exit"
|
||||
alias q="exit"
|
||||
alias ..="cd .."
|
||||
alias ...="cd ../.."
|
||||
Loading…
Add table
Add a link
Reference in a new issue