1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-02 15:17:47 +00:00

speed it up a bit by commenting out things that aren't used

This commit is contained in:
Darren Schroeder 2021-02-23 15:01:35 -06:00
parent 1fcd13cbfa
commit 0080f514e1

View file

@ -1,11 +1,11 @@
# This is a work in progress. Not working yet but you can see where I'm going. # This is a work in progress. Not working yet but you can see where I'm going.
def construct_prompt [] { def construct_prompt [] {
let decorator = $(char prompt) let decorator = $(char prompt)
let machine_name = $(sys | get host.hostname) # let machine_name = $(sys | get host.hostname)
let current_dir = $(pwd) let current_dir = $(pwd)
let git_info = $(do -i { git rev-parse --abbrev-ref HEAD } | str trim | str collect ) let git_info = $(do -i { git rev-parse --abbrev-ref HEAD } | str trim | str collect )
let title_bar = $(set_title) let title_bar = $(set_title)
let git_status = $(git -c core.quotepath=false -c color.status=false status -uall --short --branch) # let git_status = $(git -c core.quotepath=false -c color.status=false status -uall --short --branch)
let term_width = $(term size -w) let term_width = $(term size -w)
let current_time = $(date now | date format '%I:%M:%S%.3f %p') let current_time = $(date now | date format '%I:%M:%S%.3f %p')