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:
@@ -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
2
zsh/completions/_screen
Normal file → Executable 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
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() {
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user