adds some bash config to test out

This commit is contained in:
Dennis Schoepf 2025-09-20 22:30:46 +02:00
parent 64846f1cc5
commit b548ea3b38
4 changed files with 26 additions and 4 deletions

View file

@ -15,8 +15,9 @@
imports = [
../modules/ssh
../modules/git
../modules/fish
../modules/zoxide
../modules/atuin
../modules/bash
../modules/wezterm
../modules/nvim
../modules/lazygit

View file

@ -1,6 +1,7 @@
{
programs.atuin = {
enable = true;
enableBashIntegration = true;
enableFishIntegration = true;
settings = {
style = "compact";

View file

@ -3,21 +3,35 @@
enable = true;
enableCompletion = true;
sessionVariables = {
GPG_TTY = "$(tty)";
};
shellAliases = {
"ff" = "${./bin/ff.sh}";
"ipl" = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
"ipp" = "curl -4 ifconfig.me";
"lg" = "lazygit";
"g" = "git";
"xsrc" = "source ~/.bashrc && source .bash_profile";
};
profileExtra = ''
export PATH=\
/run/current-system/sw/bin:\
/opt/homebrew/bin:$PATH
'';
bashrcExtra = ''
# Env variables
# Setup emacs-libvterm
# FNM
eval "$(fnm env --use-on-cd --shell bash)"
# emacs-libvterm
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
&& [[ -n "$EMACS_VTERM_PATH" ]] \
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
source "$EMACS_VTERM_PATH
fi
'';
};
}

View file

@ -0,0 +1,6 @@
{
zoxide = {
enable = true;
enableBashIntegration = true;
};
}