mirror of
https://github.com/CoolnsX/hyprdots.git
synced 2025-12-20 07:15:23 +05:30
Best commit ever
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
2
zsh/completions/_screen
Normal file → Executable file
2
zsh/completions/_screen
Normal file → Executable file
@@ -1,4 +1,4 @@
|
||||
#compdef yt-music
|
||||
#compdef screen
|
||||
|
||||
local -a subcmds
|
||||
subcmds=(
|
||||
|
||||
0
zsh/completions/_tailscale
Normal file → Executable file
0
zsh/completions/_tailscale
Normal file → Executable file
0
zsh/completions/_url_nextcloud
Normal file → Executable file
0
zsh/completions/_url_nextcloud
Normal file → Executable file
0
zsh/completions/_url_oshi
Normal file → Executable file
0
zsh/completions/_url_oshi
Normal file → Executable file
0
zsh/completions/_yt-music
Normal file → Executable file
0
zsh/completions/_yt-music
Normal file → Executable file
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user