mirror of
https://github.com/hydroxycarbamide/dotfiles.git
synced 2025-05-09 14:19:08 -04:00
Compare commits
No commits in common. "8f8089f4df91368d6cbaa5834862be0d37b2852d" and "3b5aebcd939170b971a1d8f44ada597c693658ea" have entirely different histories.
8f8089f4df
...
3b5aebcd93
6 changed files with 22 additions and 48 deletions
|
@ -1 +1 @@
|
||||||
Subproject commit b0788b654c7d3399add949e0d618d97aafb4c280
|
Subproject commit 0778677dd3037b5416c50b39f7450fc31f30c151
|
|
@ -71,31 +71,16 @@ if status is-interactive
|
||||||
# unset
|
# unset
|
||||||
alias unset 'set --erase'
|
alias unset 'set --erase'
|
||||||
|
|
||||||
# yazi
|
|
||||||
# alias y='yazi'
|
|
||||||
alias yz='yazi'
|
|
||||||
|
|
||||||
|
|
||||||
function nnn_cd
|
function nnn_cd
|
||||||
if test -n "$NNN_PIPE"
|
if test -n "$NNN_PIPE"
|
||||||
printf "%s\0" "0c$PWD" >"$NNN_PIPE" ! &
|
printf "%s\0" "0c$PWD" > "$NNN_PIPE" !&
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
trap nnn_cd EXIT
|
trap nnn_cd EXIT
|
||||||
|
|
||||||
# Change Yazi's CWD to PWD on subshell exit
|
|
||||||
if [ -n "$YAZI_ID" ]
|
|
||||||
trap 'ya pub dds-cd --str "$PWD"' EXIT
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
|
|
||||||
# tmux
|
|
||||||
#if status is-interactive
|
|
||||||
#and not set -q TMUX
|
|
||||||
# exec tmux
|
|
||||||
#end
|
|
||||||
|
|
||||||
# pnpm
|
# pnpm
|
||||||
set -gx PNPM_HOME "/home/eric/.local/share/pnpm"
|
set -gx PNPM_HOME "/home/eric/.local/share/pnpm"
|
||||||
if not string match -q -- $PNPM_HOME $PATH
|
if not string match -q -- $PNPM_HOME $PATH
|
||||||
|
@ -105,28 +90,28 @@ end
|
||||||
|
|
||||||
# nnn
|
# nnn
|
||||||
alias N="sudo -E nnn"
|
alias N="sudo -E nnn"
|
||||||
set -gx LC_COLLATE C
|
set -gx LC_COLLATE "C"
|
||||||
set -gx NNN_PAGER cat
|
set -gx NNN_PAGER "cat"
|
||||||
set -gx NNN_OPTS eaA
|
set -gx NNN_OPTS "eaA"
|
||||||
set -gx NNN_OPENER '/home/eric/.config/nnn/plugins/nuke'
|
set -gx NNN_OPENER '/home/eric/.config/nnn/plugins/nuke'
|
||||||
set -gx NNN_PLUG 'd:dragdrop;f:finder;i:!fish -i*;m:mtpmount;o:fzopen;p:preview-tui;r:rsynccp;s:suedit;t:nmount;v:imgview;z:autojump'
|
set -gx NNN_PLUG 'd:dragdrop;f:finder;i:!fish -i*;m:mtpmount;o:fzopen;p:preview-tui;r:rsynccp;s:suedit;t:nmount;v:imgview;z:autojump'
|
||||||
set -gx SPLIT v # to split Kitty vertically
|
set -gx SPLIT 'v' # to split Kitty vertically
|
||||||
|
|
||||||
set BLK 03
|
set BLK "03"
|
||||||
set CHR 03
|
set CHR "03"
|
||||||
set DIR 04
|
set DIR "04"
|
||||||
set EXE 02
|
set EXE "02"
|
||||||
set REG 07
|
set REG "07"
|
||||||
set HARDLINK 05
|
set HARDLINK "05"
|
||||||
set SYMLINK 05
|
set SYMLINK "05"
|
||||||
set MISSING 08
|
set MISSING "08"
|
||||||
set ORPHAN 01
|
set ORPHAN "01"
|
||||||
set FIFO 06
|
set FIFO "06"
|
||||||
set SOCK 03
|
set SOCK "03"
|
||||||
set UNKNOWN 01
|
set UNKNOWN "01"
|
||||||
set -gx NNN_FCOLORS "$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$UNKNOWN"
|
set -gx NNN_FCOLORS "$BLK$CHR$DIR$EXE$REG$HARDLINK$SYMLINK$MISSING$ORPHAN$FIFO$SOCK$UNKNOWN"
|
||||||
set -gx NNN_COLORS "#04020301;4231"
|
set -gx NNN_COLORS "#04020301;4231"
|
||||||
set -gx NNN_TERMINAL foot
|
set -gx NNN_TERMINAL "foot"
|
||||||
|
|
||||||
# source /opt/miniconda3/etc/fish/conf.d/conda.fish
|
# source /opt/miniconda3/etc/fish/conf.d/conda.fish
|
||||||
|
|
||||||
|
|
|
@ -63,4 +63,4 @@ SETUVAR fish_pager_color_selected_background:\x1d
|
||||||
SETUVAR fish_pager_color_selected_completion:\x1d
|
SETUVAR fish_pager_color_selected_completion:\x1d
|
||||||
SETUVAR fish_pager_color_selected_description:\x1d
|
SETUVAR fish_pager_color_selected_description:\x1d
|
||||||
SETUVAR fish_pager_color_selected_prefix:\x1d
|
SETUVAR fish_pager_color_selected_prefix:\x1d
|
||||||
SETUVAR fish_user_paths:/home/eric/\x2elocal/share/cargo/bin\x1e/home/eric/\x2elocal/share/dotnet/\x2edotnet/tools\x1e/home/eric/\x2econfig/emacs/bin\x1e/home/eric/\x2enix\x2dprofile/bin\x1e/home/eric/\x2eemacs\x2ed/bin\x1e/home/eric/\x2elocal/bin\x1e/home/eric/\x2elocal/share/pnpm\x1e/home/eric/\x2espicetify\x1e/opt/rocm/bin\x1e/home/eric/\x2ebun/bin\x1e/usr/bin\x1e/usr/sbin\x1e/usr/local/bin\x1e/usr/local/sbin
|
SETUVAR fish_user_paths:/home/eric/\x2enix\x2dprofile/bin\x1e/home/eric/\x2eemacs\x2ed/bin\x1e/home/eric/\x2elocal/bin\x1e/home/eric/\x2elocal/share/pnpm\x1e/home/eric/\x2espicetify\x1e/opt/rocm/bin\x1e/home/eric/\x2ebun/bin\x1e/usr/bin\x1e/usr/sbin\x1e/usr/local/bin\x1e/usr/local/sbin
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
function fish_greeting
|
|
||||||
catnap
|
|
||||||
end
|
|
|
@ -27,7 +27,7 @@ function n --wraps nnn --description 'support nnn quit and change directory'
|
||||||
|
|
||||||
# The command function allows one to alias this function to `nnn` without
|
# The command function allows one to alias this function to `nnn` without
|
||||||
# making an infinitely recursive alias
|
# making an infinitely recursive alias
|
||||||
command nnn -P p $argv
|
command nnn $argv
|
||||||
|
|
||||||
if test -e $NNN_TMPFILE
|
if test -e $NNN_TMPFILE
|
||||||
source $NNN_TMPFILE
|
source $NNN_TMPFILE
|
||||||
|
|
|
@ -1,8 +0,0 @@
|
||||||
function y
|
|
||||||
set tmp (mktemp -t "yazi-cwd.XXXXXX")
|
|
||||||
yazi $argv --cwd-file="$tmp"
|
|
||||||
if set cwd (command cat -- "$tmp"); and [ -n "$cwd" ]; and [ "$cwd" != "$PWD" ]
|
|
||||||
builtin cd -- "$cwd"
|
|
||||||
end
|
|
||||||
rm -f -- "$tmp"
|
|
||||||
end
|
|
Loading…
Add table
Add a link
Reference in a new issue