mirror of
https://codeberg.org/Mo8it/server_dotfiles.git
synced 2024-11-08 22:21:08 +00:00
Add fish config
This commit is contained in:
commit
6dc2f3d9c8
1 changed files with 35 additions and 0 deletions
35
.config/fish/config.fish
Normal file
35
.config/fish/config.fish
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
# Environment variables
|
||||||
|
set -p PATH "$HOME/.cargo/bin"
|
||||||
|
|
||||||
|
if status is-interactive
|
||||||
|
# Interactive environment variables
|
||||||
|
set -x EDITOR /usr/bin/nvim
|
||||||
|
|
||||||
|
# Setup
|
||||||
|
## McFly
|
||||||
|
set -gx MCFLY_KEY_SCHEME vim
|
||||||
|
set -gx MCFLY_FUZZY 1
|
||||||
|
set -gx MCFLY_RESULTS 25
|
||||||
|
set -gx MCFLY_INTERFACE_VIEW BOTTOM
|
||||||
|
set -gx MCFLY_RESULTS_SORT LAST_RUN
|
||||||
|
set -gx MCFLY_HISTORY_LIMIT 10000
|
||||||
|
mcfly init fish | source
|
||||||
|
|
||||||
|
# Disable greeting
|
||||||
|
set -g fish_greeting
|
||||||
|
|
||||||
|
# Abbreviations
|
||||||
|
## Replacements
|
||||||
|
abbr -a -g rm trash
|
||||||
|
|
||||||
|
## Safety options
|
||||||
|
abbr -a -g cp "cp -i"
|
||||||
|
abbr -a -g mv "mv -i"
|
||||||
|
abbr -a -g rmi "rm -i"
|
||||||
|
|
||||||
|
# Functions
|
||||||
|
## Replacements
|
||||||
|
function cat -w bat
|
||||||
|
bat $argv
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue