my dotfiles
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

at master 44 lines 1.1 kB view raw
1config.use_tish_ls = true 2 3local pmc_ver <const> = sys.eval_to_str("pmc --version") 4env.pmc_version = pmc_ver:match("pmc (%d+%.%d+%.%d+)") 5 6-- prompt 7config.prompt = [[ 8 {let docker_conn = cmd('docker context show')} 9 {let version = cmd('docker --version') | match('Docker version (\d+\.\d+\.\d+)', 1)} 10 11 \n<s.b><s.#5EFDFF>{path-folder}</s>{' '} 12 13 {if git.in-repo { 14 <s.b>in <s.{ 15 if git.working.changed || git.staging.changed { #FFEB3B } 16 else if git.ahead > 0 && git.behind > 0 { #FFCC80 } 17 else if git.ahead > 0 { #B388FF } 4 18 else if git.behind > 0 { #B388FB } else { #FF94DF } 19 }> {git.branch} {git.status}</s> 20 }} 21 22 <s.b>on <s.#5EFDFF>󰡨 v{version} ({docker_conn})</s> 23 <s.b>\n<s.#57E15D>➜</s>{' '} 24]] 25 26-- functions 27 28function example_lua(arg1, arg2) 29 print("arg1: " .. arg1 .. "\narg2: " .. arg2) 30end 31 32function meower(count) 33 count = count or 1 34 for i = 1, count do 35 print("meow") 36 end 37end 38 39-- aliases 40 41alias.kat = "bat" 42alias.ls = "ls -l" 43alias.exe = "example_lua 1" 44alias.exe2 = "exe 1"