ey im xonshing here!

This commit is contained in:
alisceon 2025-09-04 15:05:45 +02:00
parent fad3683ffa
commit 648803b90c
5 changed files with 129 additions and 92 deletions

View file

@ -110,9 +110,6 @@
}; # end programs
# nixpkgs config
xdg.configFile."nixpkgs/config.nix".source = ../conf/config.nix;
home.file.".xonshrc"= {
source = ../conf/xonshrc;
};
# Ensure fish exists for the completer backend
home.packages = [ pkgs.fish ];

View file

@ -1,16 +0,0 @@
# XONSH WEBCONFIG START
$XONSH_COLOR_STYLE = 'default'
$PROMPT = '{YELLOW}{env_name}{RESET}{BOLD_GREEN}{user}@{hostname}{BOLD_BLUE} {cwd}{branch_color}{curr_branch: {}}{RESET} {RED}{last_return_code_if_nonzero:[{BOLD_INTENSE_RED}{}{RED}] }{RESET}{BOLD_BLUE}{prompt_end}{RESET} '
xontrib load coreutils
xontrib load fish_completer
xontrib load direnv
xontrib load fzf-completions
xontrib load clp
xontrib load abbrevs
from xonsh.built_ins import XSH
XSH.env['fzf_history_binding'] = "c-r" # Ctrl+R
XSH.env['fzf_ssh_binding'] = "c-s" # Ctrl+S
XSH.env['fzf_file_binding'] = "c-t" # Ctrl+T
XSH.env['fzf_dir_binding'] = "c-g" # Ctrl+G