Skip to content

Commit 7310ae2

Browse files
PYTHON_HISTORY [new in 3.13](python/cpython#13208)
thanks to https://unix.stackexchange.com/questions/630642/change-location-of-python-history - don't use a new folder cause 1) no need for just 1 file 2) python won't make it for you, will just fail to write history. [`xdg-ninja`](https://github.com/b3nj5m1n/xdg-ninja) is good, we need more all-in-one places for doing config like this. but it's more or less just a community thing will need a place for these lines in zshrc /shrug + try some LSP servers + bat hard-wraps, less -S is nice
1 parent 3af4cf0 commit 7310ae2

2 files changed

Lines changed: 6 additions & 1 deletion

File tree

.config/Brewfile

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ brew "node"
4949
brew "openjdk"
5050
brew "procs"
5151
brew "prometheus"
52+
brew "python-lsp-server"
5253
brew "pyyaml"
5354
brew "qrencode"
5455
brew "ripgrep"
@@ -58,6 +59,7 @@ brew "signal-cli"
5859
brew "skopeo"
5960
brew "sops"
6061
brew "speedtest-cli"
62+
brew "taplo"
6163
brew "terraform-ls"
6264
brew "tldr"
6365
brew "tmux"
@@ -68,6 +70,7 @@ brew "typescript-language-server"
6870
brew "uv"
6971
brew "viddy"
7072
brew "watch"
73+
brew "xdg-ninja", args: ["HEAD"]
7174
brew "xsv"
7275
brew "yarn"
7376
brew "youtube-dl"

.zshrc

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -420,7 +420,7 @@ if (( $+commands[bat] )); then
420420
alias bat="TERM=screen-256color bat --italic-text=always"
421421
alias xargs="TERM=screen-256color xargs" # if it calls bat/less
422422
alias c=bat
423-
alias m=bat # used to be `most` for a long time
423+
alias m=less # used to be `most` for a long time
424424
export BAT_THEME=gruvbox-dark
425425
export BAT_STYLE=changes,header,rule,numbers,snip
426426
fi
@@ -483,3 +483,5 @@ source_if ~/.config/zsh/zshrc_specific
483483
pupdate() { case ":${PATH:=$1}:" in *:"$1":*) ;; *) PATH="$1:$PATH" ;; esac; }
484484

485485
pupdate ~/.local/bin
486+
487+
export PYTHON_HISTORY="${XDG_STATE_HOME:-$HOME/.local/state}"/python_history

0 commit comments

Comments
 (0)