Skip to content

Commit 44e8855

Browse files
committed
update
1 parent e140eee commit 44e8855

File tree

7 files changed

+28
-18
lines changed

7 files changed

+28
-18
lines changed

dot_config/starship/config.toml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,22 @@
11
format = """
2-
$directory$git_branch${custom.git_dirty}$git_status$cmd_duration
3-
$character
2+
$directory$python$git_branch${custom.git_dirty}$git_status$cmd_duration
3+
$hostname$character
44
"""
55

66
[directory]
7+
format = '[$path]($style)[$read_only]($read_only_style)'
78
style = 'bold blue'
89
home_symbol = '~'
910
truncate_to_repo = false
1011
truncation_length = 0
1112
# truncation_length = 8
1213
# truncation_symbol = '…/'
1314

15+
[python]
16+
format = ' via [${symbol}${pyenv_prefix}(${version})(\($virtualenv\))]($style)'
17+
1418
[git_branch]
15-
format = '[$branch](bold cyan)'
19+
format = ' [$branch](bold cyan)'
1620

1721
[custom.git_dirty]
1822
when = """ [[ $(git status --porcelain) != '' ]] """
@@ -27,6 +31,10 @@ diverged = '[⇣⇡](cyan)'
2731
[cmd_duration]
2832
format = ' [$duration](bold yellow)'
2933

34+
[hostname]
35+
ssh_only = true
36+
format = '[$hostname](bold black) '
37+
3038
[character] # The name of the module we are configuring is 'character'
3139
success_symbol = '[❯](bold purple)'
3240
error_symbol = '[❯](bold red)'
File renamed without changes.

dot_tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ neovim stable
22
python 3.11.9
33
golang 1.21.5
44
rust 1.84.1
5+
nodejs 18.20.5

dot_zsh/opt.zsh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,3 +10,15 @@ setopt pushdminus # Invert meanings of +N and -N arguments to pushd
1010
# Enable hex color codes
1111
zmodload zsh/nearcolor
1212

13+
HISTFILE="$HOME/.zsh_history" # location of the history file
14+
SAVEHIST=1000
15+
HISTSIZE=1200 # current session's history limit, also following this https://unix.stackexchange.com/a/595475 $HISTSIZE should be at least 20% bigger than $SAVEHIST
16+
17+
setopt INC_APPEND_HISTORY # history file is updated immediately after a command is entered
18+
setopt SHARE_HISTORY # allows multiple Zsh sessions to share the same command history
19+
setopt EXTENDED_HISTORY # records the time when each command was executed
20+
setopt APPENDHISTORY # ensures that each command entered in the current session is appended to the history file immediately after execution
21+
22+
23+
24+

dot_zshenv

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ else
2222
function _is_linux() { return 1 }
2323
fi
2424

25+
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
26+
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
27+
fi
28+
2529
export PATH="$HOME/.local/bin:$PATH"
2630
export PATH="$HOME/.scripts/git:$PATH"
2731
export PATH="$PATH:$HOME/.local/share/JetBrains/Toolbox/scripts"

setup/Brewfile

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,7 @@ tap "koekeishiya/formulae"
44
tap "homebrew/cask-fonts"
55
tap "daipeihust/tap"
66

7-
8-
brew "python@3.11"
97
brew "go"
10-
brew "node@18", link: :force
11-
brew "bob"
128
brew "bat"
139
brew "chezmoi"
1410
brew "eza"
@@ -35,13 +31,6 @@ brew "terraform"
3531
brew "wakeonlan"
3632
brew "asdf"
3733

38-
# Window manager
39-
brew "FelixKratz/formulae/borders"
40-
brew "koekeishiya/formulae/yabai"
41-
brew "koekeishiya/formulae/skhd"
42-
brew "FelixKratz/formulae/sketchybar"
43-
44-
4534
cask "font-jetbrains-mono-nerd-font"
4635
cask "font-d2coding"
4736
cask "wezterm"

setup/arch-packages.txt

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,8 @@ ly
1717
asdf
1818

1919
base-devel
20-
pyenv
2120
bat
2221
zsh
23-
bob
2422
ripgrep
2523
xclip
2624
rofi
@@ -34,8 +32,6 @@ git
3432
google-chrome
3533
grub
3634
lazygit
37-
nodejs
38-
npm
3935
openssh
4036
pavucontrol
4137
unzip

0 commit comments

Comments
 (0)