adds some bash config to test out
This commit is contained in:
parent
64846f1cc5
commit
b548ea3b38
4 changed files with 26 additions and 4 deletions
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
programs.atuin = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
enableFishIntegration = true;
|
||||
settings = {
|
||||
style = "compact";
|
||||
|
|
|
|||
|
|
@ -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
|
||||
'';
|
||||
|
||||
};
|
||||
}
|
||||
|
|
|
|||
6
modules/zoxide/default.nix
Normal file
6
modules/zoxide/default.nix
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
{
|
||||
zoxide = {
|
||||
enable = true;
|
||||
enableBashIntegration = true;
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue