First commit
This commit is contained in:
commit
b99375976e
24 changed files with 855 additions and 0 deletions
0
private_dot_config/private_fish/completions/.keep
Normal file
0
private_dot_config/private_fish/completions/.keep
Normal file
1
private_dot_config/private_fish/conf.d/rustup.fish
Normal file
1
private_dot_config/private_fish/conf.d/rustup.fish
Normal file
|
@ -0,0 +1 @@
|
|||
source "$HOME/.cargo/env.fish"
|
11
private_dot_config/private_fish/config.fish
Normal file
11
private_dot_config/private_fish/config.fish
Normal file
|
@ -0,0 +1,11 @@
|
|||
set -gx EDITOR "nvim"
|
||||
|
||||
set -gx NNN_FCOLORS "070704020003030101060607"
|
||||
set -gx NNN_OPTS 'a'
|
||||
set -gx NNN_TRASH '1'
|
||||
set -gx NNN_PLUGx 'p:preview-tui'
|
||||
set -gx NNN_BMS "d:$HOME/Downloads;n:$HOME/Nextcloud;g:$HOME/git;m:/run/media/fern"
|
||||
|
||||
if status is-interactive
|
||||
# Commands to run in interactive sessions can go here
|
||||
end
|
31
private_dot_config/private_fish/fish_variables
Normal file
31
private_dot_config/private_fish/fish_variables
Normal file
|
@ -0,0 +1,31 @@
|
|||
# This file contains fish universal variable definitions.
|
||||
# VERSION: 3.0
|
||||
SETUVAR __fish_initialized:3800
|
||||
SETUVAR fish_color_autosuggestion:brblack
|
||||
SETUVAR fish_color_cancel:\x2dr
|
||||
SETUVAR fish_color_command:normal
|
||||
SETUVAR fish_color_comment:red
|
||||
SETUVAR fish_color_cwd:green
|
||||
SETUVAR fish_color_cwd_root:red
|
||||
SETUVAR fish_color_end:green
|
||||
SETUVAR fish_color_error:brred
|
||||
SETUVAR fish_color_escape:brcyan
|
||||
SETUVAR fish_color_history_current:\x2d\x2dbold
|
||||
SETUVAR fish_color_host:normal
|
||||
SETUVAR fish_color_host_remote:yellow
|
||||
SETUVAR fish_color_normal:normal
|
||||
SETUVAR fish_color_operator:brcyan
|
||||
SETUVAR fish_color_param:cyan
|
||||
SETUVAR fish_color_quote:yellow
|
||||
SETUVAR fish_color_redirection:cyan\x1e\x2d\x2dbold
|
||||
SETUVAR fish_color_search_match:white\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_selection:white\x1e\x2d\x2dbold\x1e\x2d\x2dbackground\x3dbrblack
|
||||
SETUVAR fish_color_status:red
|
||||
SETUVAR fish_color_user:brgreen
|
||||
SETUVAR fish_color_valid_path:\x2d\x2dunderline
|
||||
SETUVAR fish_key_bindings:fish_default_key_bindings
|
||||
SETUVAR fish_pager_color_completion:normal
|
||||
SETUVAR fish_pager_color_description:yellow\x1e\x2di
|
||||
SETUVAR fish_pager_color_prefix:normal\x1e\x2d\x2dbold\x1e\x2d\x2dunderline
|
||||
SETUVAR fish_pager_color_progress:brwhite\x1e\x2d\x2dbackground\x3dcyan
|
||||
SETUVAR fish_pager_color_selected_background:\x2dr
|
37
private_dot_config/private_fish/functions/n.fish
Normal file
37
private_dot_config/private_fish/functions/n.fish
Normal file
|
@ -0,0 +1,37 @@
|
|||
# Rename this file to match the name of the function
|
||||
# e.g. ~/.config/fish/functions/n.fish
|
||||
# or, add the lines to the 'config.fish' file.
|
||||
|
||||
function n --wraps nnn --description 'support nnn quit and change directory'
|
||||
# Block nesting of nnn in subshells
|
||||
if test -n "$NNNLVL" -a "$NNNLVL" -ge 1
|
||||
echo "nnn is already running"
|
||||
return
|
||||
end
|
||||
|
||||
# The behaviour is set to cd on quit (nnn checks if NNN_TMPFILE is set)
|
||||
# If NNN_TMPFILE is set to a custom path, it must be exported for nnn to
|
||||
# see. To cd on quit only on ^G, remove the "-x" from both lines below,
|
||||
# without changing the paths.
|
||||
if test -n "$XDG_CONFIG_HOME"
|
||||
set -x NNN_TMPFILE "$XDG_CONFIG_HOME/nnn/.lastd"
|
||||
else
|
||||
set -x NNN_TMPFILE "$HOME/.config/nnn/.lastd"
|
||||
end
|
||||
|
||||
# Unmask ^Q (, ^V etc.) (if required, see `stty -a`) to Quit nnn
|
||||
# stty start undef
|
||||
# stty stop undef
|
||||
# stty lwrap undef
|
||||
# stty lnext undef
|
||||
|
||||
# The command function allows one to alias this function to `nnn` without
|
||||
# making an infinitely recursive alias
|
||||
command nnn $argv
|
||||
|
||||
if test -e $NNN_TMPFILE
|
||||
source $NNN_TMPFILE
|
||||
rm -- $NNN_TMPFILE
|
||||
end
|
||||
end
|
||||
|
3
private_dot_config/private_fish/functions/rs.fish
Normal file
3
private_dot_config/private_fish/functions/rs.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function rs --wraps rsync --description 'rsync with good options'
|
||||
rsync -avhP $argv
|
||||
end
|
3
private_dot_config/private_fish/functions/s.fish
Normal file
3
private_dot_config/private_fish/functions/s.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function s --description 'SSH with kitty'
|
||||
kitten ssh $argv
|
||||
end
|
3
private_dot_config/private_fish/functions/xi.fish
Normal file
3
private_dot_config/private_fish/functions/xi.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function xi --wraps xbps-install --description 'Install a package'
|
||||
sudo xbps-install $argv
|
||||
end
|
3
private_dot_config/private_fish/functions/xr.fish
Normal file
3
private_dot_config/private_fish/functions/xr.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function xr --wraps xbps-remove --description 'Remove a package'
|
||||
sudo xbps-remove $argv
|
||||
end
|
3
private_dot_config/private_fish/functions/xu.fish
Normal file
3
private_dot_config/private_fish/functions/xu.fish
Normal file
|
@ -0,0 +1,3 @@
|
|||
function xu --description 'Update the system'
|
||||
sudo xbps-install -Syu
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue