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
|
|
@ -15,8 +15,9 @@
|
||||||
imports = [
|
imports = [
|
||||||
../modules/ssh
|
../modules/ssh
|
||||||
../modules/git
|
../modules/git
|
||||||
../modules/fish
|
../modules/zoxide
|
||||||
../modules/atuin
|
../modules/atuin
|
||||||
|
../modules/bash
|
||||||
../modules/wezterm
|
../modules/wezterm
|
||||||
../modules/nvim
|
../modules/nvim
|
||||||
../modules/lazygit
|
../modules/lazygit
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
programs.atuin = {
|
programs.atuin = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
enableBashIntegration = true;
|
||||||
enableFishIntegration = true;
|
enableFishIntegration = true;
|
||||||
settings = {
|
settings = {
|
||||||
style = "compact";
|
style = "compact";
|
||||||
|
|
|
||||||
|
|
@ -3,21 +3,35 @@
|
||||||
enable = true;
|
enable = true;
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
|
||||||
|
sessionVariables = {
|
||||||
|
GPG_TTY = "$(tty)";
|
||||||
|
};
|
||||||
|
|
||||||
shellAliases = {
|
shellAliases = {
|
||||||
"ff" = "${./bin/ff.sh}";
|
"ff" = "${./bin/ff.sh}";
|
||||||
"ipl" = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
|
"ipl" = "ifconfig | grep \"inet \" | grep -v 127.0.0.1 | awk '{print $2}' | head -n 1";
|
||||||
"ipp" = "curl -4 ifconfig.me";
|
"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 = ''
|
bashrcExtra = ''
|
||||||
# Env variables
|
# FNM
|
||||||
# Setup emacs-libvterm
|
eval "$(fnm env --use-on-cd --shell bash)"
|
||||||
|
|
||||||
|
# emacs-libvterm
|
||||||
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
if [[ "$INSIDE_EMACS" = 'vterm' ]] \
|
||||||
&& [[ -n "$EMACS_VTERM_PATH" ]] \
|
&& [[ -n "$EMACS_VTERM_PATH" ]] \
|
||||||
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
|
&& [[ -f "$EMACS_VTERM_PATH/etc/emacs-vterm-bash.sh" ]]; then
|
||||||
source "$EMACS_VTERM_PATH
|
source "$EMACS_VTERM_PATH
|
||||||
fi
|
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