disable starship to native ps1

This commit is contained in:
jmarkin 2025-11-05 04:41:13 +03:00
parent 25221831ed
commit 9134dafd94
3 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@
home.sessionVariables = {
RSYNC_RSH = "$HOME/.local/scripts/git_ssh.bash";
GIT_SSH = "$HOME/.local/scripts/git_ssh.bash";
PROMPT_DIRTRIM = 2;
};
home.packages = with pkgs; [
@ -25,6 +26,7 @@
enable = true;
enableCompletion = true;
initExtra = /* bash */''
export PS1="\[$(tput setaf 39)\]\u\[$(tput setaf 81)\]@\[$(tput setaf 77)\]\h#\[$(tput setaf 226)\]\w \[$(tput sgr0)\]$?\\$ "
bind '"\e[A": history-search-backward'
bind '"\e[B": history-search-forward'
@ -34,10 +36,10 @@
source ~/.local/scripts/funcs.sh
source ~/.local/scripts/ssh_agent.sh
# include .envs if it exists
[[ -f ~/.envs ]] && . ~/.envs
eval $(locale)
'';

View file

@ -1,6 +1,6 @@
{ config, lib, pkgs, ... }:
{
programs.starship.enable = true;
programs.starship.enable = false;
programs.starship.enableTransience = true;
programs.starship.settings = {

View file

@ -141,8 +141,7 @@ in
set-option -g status-right-length 200
set-option -g status-right-style default
# wg_lang="#(defaults read ~/Library/Preferences/com.apple.HIToolbox.plist AppleCurrentKeyboardLayoutInputSourceID | awk -F. '{print $4}')"
set-option -g status-right "#[fg=red,dim,bg=default] #(uptime | cut -f 4-5 -d ' ' | cut -f 1 -d ',') "
set-option -ag status-right " #[fg=white,bg=default]%H:%M:%S"
set-option -g status-right " #[fg=white,bg=default]%H:%M:%S"
set-window-option -g window-status-style fg=colour244
set-window-option -g window-status-style bg=default
set-window-option -g window-status-format "#I #[underscore]#{?#{==:#{window_panes},1},,+}#[bold]#W#[nobold]:#{=|-24|;s|$HOME|~|:pane_current_path}"