From 65c507d6037d261bdda53f86785bd0549a4d7c81 Mon Sep 17 00:00:00 2001 From: coolnsx Date: Tue, 4 Nov 2025 11:56:18 +0530 Subject: [PATCH] Best commit ever --- zed/settings.json | 11 ++++++++--- zsh/completions/_screen | 2 +- zsh/completions/_tailscale | 0 zsh/completions/_url_nextcloud | 0 zsh/completions/_url_oshi | 0 zsh/completions/_yt-music | 0 zsh/zsh_functions | 7 ++++--- zsh/zshrc | 2 +- 8 files changed, 14 insertions(+), 8 deletions(-) mode change 100644 => 100755 zsh/completions/_screen mode change 100644 => 100755 zsh/completions/_tailscale mode change 100644 => 100755 zsh/completions/_url_nextcloud mode change 100644 => 100755 zsh/completions/_url_oshi mode change 100644 => 100755 zsh/completions/_yt-music diff --git a/zed/settings.json b/zed/settings.json index 3783b5a..aac34ff 100644 --- a/zed/settings.json +++ b/zed/settings.json @@ -44,8 +44,13 @@ }, "languages": { "PHP": { - "language_servers": ["intelephense","!phpactor"], - "format_on_save": "off" + "language_servers": ["intelephense", "!phpactor"], + "enable_language_server": true, + "formatter": "language_server", + "format_on_save": "off", + }, + "JavaScript": { + "tab_size": 4, } - } + }, } diff --git a/zsh/completions/_screen b/zsh/completions/_screen old mode 100644 new mode 100755 index 254ff95..d55357f --- a/zsh/completions/_screen +++ b/zsh/completions/_screen @@ -1,4 +1,4 @@ -#compdef yt-music +#compdef screen local -a subcmds subcmds=( diff --git a/zsh/completions/_tailscale b/zsh/completions/_tailscale old mode 100644 new mode 100755 diff --git a/zsh/completions/_url_nextcloud b/zsh/completions/_url_nextcloud old mode 100644 new mode 100755 diff --git a/zsh/completions/_url_oshi b/zsh/completions/_url_oshi old mode 100644 new mode 100755 diff --git a/zsh/completions/_yt-music b/zsh/completions/_yt-music old mode 100644 new mode 100755 diff --git a/zsh/zsh_functions b/zsh/zsh_functions index 986b6c9..11814da 100644 --- a/zsh/zsh_functions +++ b/zsh/zsh_functions @@ -55,20 +55,21 @@ deploy() { } clshist() { + [ -z "$ZED_TERM" ] || return 0 tmpfile="${TMPDIR:-/tmp}/histfile" # keep recent entries at bottom - tac "$HISTFILE" | awk '!seen[$0]++' | tac >"$tmpfile" + tac "$HISTFILE" | awk '!seen[$0]++' | tac | tee "$tmpfile" >/dev/null # Trim to HISTSIZE (default:1000) - local total_lines total_lines=$(wc -l <"$tmpfile") if [ "$total_lines" -gt "${HISTSIZE:-1000}" ]; then sed -i "1,$((total_lines - HISTSIZE))d" "$tmpfile" fi # Replace original file - mv "$tmpfile" "$HISTFILE" + [ -f "$tmpfile" ] && mv "$tmpfile" "$HISTFILE" + unset tmpfile total_lines } v() { diff --git a/zsh/zshrc b/zsh/zshrc index 18f2468..0595c88 100644 --- a/zsh/zshrc +++ b/zsh/zshrc @@ -24,7 +24,7 @@ alias reboot_firmware="systemctl reboot --firmware-setup" alias sail="./vendor/bin/sail" #config -HISTFILE=~/.histfile +HISTFILE=$HOME/.histfile HISTSIZE=500 SAVEHIST=500 clshist