Compare commits
No commits in common. "6368c2241c27a5f7042e7289fbdabb37eaafa0e7" and "90642f15dbb45119b8232254270e5089b6971f43" have entirely different histories.
6368c2241c
...
90642f15db
1
programs
1
programs
@ -17,7 +17,6 @@ xorg-setxkbmap
|
|||||||
xorg-xrandr
|
xorg-xrandr
|
||||||
xorg-xset
|
xorg-xset
|
||||||
xorg-xsetroot
|
xorg-xsetroot
|
||||||
doas
|
|
||||||
|
|
||||||
# in the aur
|
# in the aur
|
||||||
xkblayout-state
|
xkblayout-state
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
|
termdown
|
||||||
animdl
|
animdl
|
||||||
td-watson
|
td-watson
|
||||||
|
@ -3,28 +3,6 @@ function fish_right_prompt
|
|||||||
return
|
return
|
||||||
end
|
end
|
||||||
|
|
||||||
set -l duration "$cmd_duration$CMD_DURATION"
|
|
||||||
if test $duration -gt 100
|
|
||||||
set duration (math $duration / 1000)s" // "
|
|
||||||
else
|
|
||||||
set duration
|
|
||||||
end
|
|
||||||
|
|
||||||
printf '%s%s%s%s%s' \
|
|
||||||
(set_color brgrey) \
|
|
||||||
$duration \
|
|
||||||
(date +"%H:%M") \
|
|
||||||
(set_color normal)
|
|
||||||
printf '%s ' \
|
|
||||||
(fish_git_prompt)
|
|
||||||
end
|
|
||||||
function fish_prompt
|
|
||||||
if fish_is_root_user
|
|
||||||
set letter '#'
|
|
||||||
else
|
|
||||||
set letter '>'
|
|
||||||
end
|
|
||||||
|
|
||||||
set -l usercolor (set_color $fish_color_cwd)
|
set -l usercolor (set_color $fish_color_cwd)
|
||||||
if command -sq cksum
|
if command -sq cksum
|
||||||
# randomised color for user/hostname based on disco.fish
|
# randomised color for user/hostname based on disco.fish
|
||||||
@ -42,10 +20,31 @@ function fish_prompt
|
|||||||
set usercolor (set_color $col)
|
set usercolor (set_color $col)
|
||||||
end
|
end
|
||||||
|
|
||||||
printf '%s%s@%s%s '\
|
set -l duration "$cmd_duration$CMD_DURATION"
|
||||||
|
if test $duration -gt 100
|
||||||
|
set duration (math $duration / 1000)s" // "
|
||||||
|
else
|
||||||
|
set duration
|
||||||
|
end
|
||||||
|
|
||||||
|
printf '%s%s%s%s%s' \
|
||||||
|
(set_color brgrey) \
|
||||||
|
$duration \
|
||||||
|
(date +"%H:%M") \
|
||||||
|
(set_color normal)
|
||||||
|
printf '%s ' \
|
||||||
|
(fish_git_prompt)
|
||||||
|
printf '%s%s@%s%s'\
|
||||||
$usercolor \
|
$usercolor \
|
||||||
(echo $USER | string shorten -m 5 -c '') \
|
(echo $USER | string shorten -m 5 -c '') \
|
||||||
(echo $hostname | string shorten -m 1 -c '') \
|
(echo $hostname | string shorten -m 1 -c '') \
|
||||||
(set_color normal)
|
(set_color normal)
|
||||||
|
end
|
||||||
|
function fish_prompt
|
||||||
|
if fish_is_root_user
|
||||||
|
set letter '#'
|
||||||
|
else
|
||||||
|
set letter '>'
|
||||||
|
end
|
||||||
printf '%s%s%s%s ' (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) $letter
|
printf '%s%s%s%s ' (set_color $fish_color_cwd) (prompt_pwd) (set_color normal) $letter
|
||||||
end
|
end
|
||||||
|
@ -29,4 +29,4 @@ function TypstWatch()
|
|||||||
endfunc
|
endfunc
|
||||||
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
nnoremap <silent><leader>fc :call TypstWatch()<cr>
|
||||||
|
|
||||||
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$', "```" : "```", "`": "`"}
|
au Filetype typst let g:AutoPairs = {'(':')', '[':']', '{':'}',"'":"'",'"':'"', '$':'$'}
|
||||||
|
@ -34,14 +34,6 @@ snippet algs "template for compsci notes" bi
|
|||||||
|
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
snippet general "general template" bi
|
|
||||||
#import "/templates/general.typ": template, lref
|
|
||||||
#show: template.with(
|
|
||||||
title: "$1",
|
|
||||||
)
|
|
||||||
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet math_prob "template for math problems" bi
|
snippet math_prob "template for math problems" bi
|
||||||
#import "/templates/math_prob.typ": template, lref
|
#import "/templates/math_prob.typ": template, lref
|
||||||
#show: template.with(
|
#show: template.with(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user