Best commit ever

This commit is contained in:
coolnsx
2025-11-04 11:56:18 +05:30
parent 46ba34c8e5
commit 65c507d603
8 changed files with 14 additions and 8 deletions

View File

@@ -45,7 +45,12 @@
"languages": { "languages": {
"PHP": { "PHP": {
"language_servers": ["intelephense", "!phpactor"], "language_servers": ["intelephense", "!phpactor"],
"format_on_save": "off" "enable_language_server": true,
} "formatter": "language_server",
"format_on_save": "off",
},
"JavaScript": {
"tab_size": 4,
} }
},
} }

2
zsh/completions/_screen Normal file → Executable file
View File

@@ -1,4 +1,4 @@
#compdef yt-music #compdef screen
local -a subcmds local -a subcmds
subcmds=( subcmds=(

0
zsh/completions/_tailscale Normal file → Executable file
View File

0
zsh/completions/_url_nextcloud Normal file → Executable file
View File

0
zsh/completions/_url_oshi Normal file → Executable file
View File

0
zsh/completions/_yt-music Normal file → Executable file
View File

View File

@@ -55,20 +55,21 @@ deploy() {
} }
clshist() { clshist() {
[ -z "$ZED_TERM" ] || return 0
tmpfile="${TMPDIR:-/tmp}/histfile" tmpfile="${TMPDIR:-/tmp}/histfile"
# keep recent entries at bottom # 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) # Trim to HISTSIZE (default:1000)
local total_lines
total_lines=$(wc -l <"$tmpfile") total_lines=$(wc -l <"$tmpfile")
if [ "$total_lines" -gt "${HISTSIZE:-1000}" ]; then if [ "$total_lines" -gt "${HISTSIZE:-1000}" ]; then
sed -i "1,$((total_lines - HISTSIZE))d" "$tmpfile" sed -i "1,$((total_lines - HISTSIZE))d" "$tmpfile"
fi fi
# Replace original file # Replace original file
mv "$tmpfile" "$HISTFILE" [ -f "$tmpfile" ] && mv "$tmpfile" "$HISTFILE"
unset tmpfile total_lines
} }
v() { v() {

View File

@@ -24,7 +24,7 @@ alias reboot_firmware="systemctl reboot --firmware-setup"
alias sail="./vendor/bin/sail" alias sail="./vendor/bin/sail"
#config #config
HISTFILE=~/.histfile HISTFILE=$HOME/.histfile
HISTSIZE=500 HISTSIZE=500
SAVEHIST=500 SAVEHIST=500
clshist clshist