diff --git a/modules/common/nushell/config.nu b/modules/common/nushell/config.nu index 9c9c02f..0293f4b 100644 --- a/modules/common/nushell/config.nu +++ b/modules/common/nushell/config.nu @@ -67,3 +67,72 @@ alias ah = cd ~/dotfiles/hosts/thegeneralist alias ai3 = nvim /home/thegeneralist/dotfiles/hosts/thegeneralist/dotfiles/i3/config # alias rb = sudo nixos-rebuild switch --flake ~/dotfiles#thegeneralist alias rb = nh os switch . -v -- --show-trace --verbose + +def greeting [] { + let quotes = [ + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "What is impossible for you is not impossible for me." + "Ah, Stil, I live in an apocalyptic dream." + "Greatness is a transitory experience." + "Limits exist only to be exceeded." + "I don’t follow paths. I make them." + "What crushes others fuels me." + "Ordinary is the disease. I am the cure." + "You see walls. I see doors." + "Fear is a suggestion. I ignore it." + "If it can be imagined, it can be done—faster." + "Mediocrity is the only true danger." + "I bend reality so you don’t have to." + "The impossible is just untested patience." + "Rules are advice I choose to ignore." + "Every boundary is a dare." + "I don’t wait for opportunity. I invent it." + "Pain is a fuel. Weakness is optional." + "Victory doesn’t ask permission." + "The future bends to those who act." + "Obstacles are just poorly designed stepping stones." + "Chaos is a playground." + "Legends are written in disregard for limits." + "Difficulty is the seasoning of achievement." + "Success belongs to those who steal it." + "Failure is the draft. Mastery is the publication." + "Time fears those who don’t respect it." + "I thrive where others break." + "Destiny is negotiable." + "Limits are suggestions, not laws." + "The world bends for persistence." + "I make the rules after winning." + "Every ‘no’ is a challenge waiting to be conquered." + "I don’t follow trends. I create them." + "Adversity is just another form of applause." + "Impossible is an opinion, not a fact." + "I carve paths through resistance." + "Mastery is forged, not granted." + "Chaos reveals the capable." + "The meek inherit nothing." + "I turn hesitation into fuel." + "Pain is temporary. Glory is eternal." + "I thrive in the impossible." + "The weak talk. The strong act." + "Fortune favors my audacity." + "Nothing worth having comes unchallenged." + "Limits are the invention of the timid." + "Every barrier is an invitation." + "I am the variable the universe didn’t calculate." + "Victory whispers to those who refuse to listen to fear." + "Failure teaches. I only graduate with honors." + "The extraordinary is a habit, not a gift." + "Resistance exists to prove my strength." + "Legends are crafted in defiance." + "The impossible is just another rehearsal." + ] + echo ($quotes | get (random int 0..(($quotes | length) - 1))) +} + +greeting diff --git a/modules/common/nushell/default.nix b/modules/common/nushell/default.nix index 1690b10..3765a7c 100644 --- a/modules/common/nushell/default.nix +++ b/modules/common/nushell/default.nix @@ -21,6 +21,7 @@ in { fzf gh fastfetch + carapace ]; shellAliases = { @@ -73,6 +74,11 @@ in { envFile.text = readFile ./env.nu; environmentVariables = config.environment.variables // homeArgs.config.home.sessionVariables; }; + programs.carapace = { + enable = true; + enableZshIntegration = true; + enableNushellIntegration = true; + }; programs.zsh = { enable = true; sessionVariables = config.environment.variables // homeArgs.config.home.sessionVariables;