diff options
| author | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-27 00:42:37 +0530 |
|---|---|---|
| committer | Aargh Rai <aargh.rai+git@gmail.com> | 2025-10-27 00:42:37 +0530 |
| commit | 54930dfa8a26a25d5a5bc353b9e025c4ac44c908 (patch) | |
| tree | a26d0c6c692a547a39bb329c7715c10d25ff5f7d /nixos | |
| parent | b0d6c3079183602e5d010f958f370570d069a157 (diff) | |
fish + NO MORE SYNC + SYNC IS BAD
Diffstat (limited to 'nixos')
| -rw-r--r-- | nixos/home.nix | 52 |
1 files changed, 51 insertions, 1 deletions
diff --git a/nixos/home.nix b/nixos/home.nix index 054d002..3810f70 100644 --- a/nixos/home.nix +++ b/nixos/home.nix @@ -8,7 +8,57 @@ shell = pkgs.fish; }; programs.adb.enable = true; - programs.fish.enable = true; + programs.fish = { + enable = true; + shellInit = '' +function fish_prompt -d "Write out the prompt" + # This shows up as USER@HOST /home/user/ >, with the directory colored + # $USER and $hostname are set by fish, so you can just use them + # instead of using `whoami` and `hostname` + printf '%s@%s %s%s%s > ' $USER $hostname \ + (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) +end + +if status is-interactive + set fish_greeting + + if not set -q TMUX + tmux new-session -d -s "main" -c "~/dev" + if not set -q VSCODE_PID + tmux -u a + end + end +end + +function tsnode + set filename (basename $argv[1] .ts) + tsc $filename.ts + node $filename.js + rm $filename.js +end + +zoxide init --cmd cd fish | source +starship init fish | source +if test -f ~/.cache/ags/user/generated/terminal/sequences.txt + cat ~/.cache/ags/user/generated/terminal/sequences.txt +end + +alias pamcan=pacman +alias py=python +alias tmux="tmux -u" +alias snvim="sudo -E -s nvim" +alias ls="eza" + +set -U fish_user_paths /home/comet/.cargo/bin $fish_user_paths +set -U fish_user_paths /opt/android-sdk/cmdline-tools/latest/bin $fish_user_paths +set -U fish_user_paths /opt/android-sdk/platform-tools $fish_user_paths +set -U fish_user_paths /opt/android-sdk/emulator $fish_user_paths + +set ANDROID_NDK_HOME /opt/android-ndk +set ANDROID_NDK_ROOT /opt/android-ndk +set ANDROID_HOME /opt/android-sdk + ''; + }; programs.firefox.enable = true; environment.systemPackages = with pkgs; [ home-manager |
