Skip to content

Commit

Permalink
Make small diff with main
Browse files Browse the repository at this point in the history
  • Loading branch information
kachick committed Sep 5, 2024
1 parent 60b6e0d commit 20c3334
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions home-manager/bash.nix
Original file line number Diff line number Diff line change
Expand Up @@ -110,33 +110,33 @@
# And https://techracho.bpsinc.jp/hachi8833/2021_07_08/66396 may help to understand why .bashrc
#
# Extracting because embedded here requires complex escape with nix multiline.
initExtra =
''
# https://github.com/starship/starship/blob/0d98c4c0b7999f5a8bd6e7db68fd27b0696b3bef/docs/uk-UA/advanced-config/README.md#change-window-title
function set_win_title() {
echo -ne "\033]0; $(${lib.getBin pkgs.coreutils}/bin/basename "$PWD") \007"
}
# shellcheck disable=SC2034
starship_precmd_user_func="set_win_title"
source "${pkgs.fzf-git-sh}/share/fzf-git-sh/fzf-git.sh"
source "${pkgs.podman}/share/bash-completion/completions/podman"
source "${pkgs.zellij}/share/bash-completion/completions/zellij.bash"
source "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash"
source "${../dependencies/dprint/completions.bash}"
source "${../dependencies/goldwarden/completions.bash}"
# Disable `Ctrl + S(no output tty)`
${lib.getBin pkgs.coreutils}/bin/stty stop undef
source "${homemade-pkgs.posix_shared_functions}"
if [ 'linux' = "$TERM" ]; then
disable_blinking_cursor
fi
''
+ builtins.readFile ./initExtra.bash;
initExtra = ''
# https://github.com/starship/starship/blob/0d98c4c0b7999f5a8bd6e7db68fd27b0696b3bef/docs/uk-UA/advanced-config/README.md#change-window-title
function set_win_title() {
echo -ne "\033]0; $(${lib.getBin pkgs.coreutils}/bin/basename "$PWD") \007"
}
# shellcheck disable=SC2034
starship_precmd_user_func="set_win_title"
source "${pkgs.fzf-git-sh}/share/fzf-git-sh/fzf-git.sh"
source "${pkgs.podman}/share/bash-completion/completions/podman"
source "${pkgs.zellij}/share/bash-completion/completions/zellij.bash"
source "${homemade-pkgs.cargo-make-completions}/share/bash-completion/completions/makers-completion.bash"
source "${../dependencies/dprint/completions.bash}"
source "${../dependencies/goldwarden/completions.bash}"
# Disable `Ctrl + S(no output tty)`
${lib.getBin pkgs.coreutils}/bin/stty stop undef
source "${homemade-pkgs.posix_shared_functions}"
if [ 'linux' = "$TERM" ]; then
disable_blinking_cursor
fi
${builtins.readFile ./initExtra.bash}
'';

logoutExtra = ''
# when leaving the console clear the screen to increase privacy
Expand Down

0 comments on commit 20c3334

Please sign in to comment.