Skip to content

Instantly share code, notes, and snippets.

View bfren's full-sized avatar

bfren

View GitHub Profile
# Nushell Environment Config File
#
# version = "0.85.0"
def create_left_prompt [] {
let home = $nu.home-path
let dir = ([
($env.PWD | str substring 0..($home | str length) | str replace $home "~"),
($env.PWD | str substring ($home | str length)..)
# Nushell Config File
#
# version = "0.85.0"
# For more information on defining custom themes, see
# https://www.nushell.sh/book/coloring_and_theming.html
# And here is the theme collection
# https://github.com/nushell/nu_scripts/tree/main/themes
let dark_theme = {
# color for nushell primitives
function fish_right_prompt
string match -qi "*.utf-8" -- $LANG $LC_CTYPE $LC_ALL
set -l d (set_color brgrey)(date "+%R")(set_color normal)
set -l duration "$cmd_duration$CMD_DURATION"
if test $duration -gt 100
set duration (math $duration / 1000)s
else
set duration
function fish_prompt
set -l last_status $status
set -l normal (set_color normal)
set -l usercolor (set_color $fish_color_user)
set -l delim " ƒ "
fish_is_root_user; and set delim " # "
# This file contains fish universal variable definitions.
# VERSION: 3.0
SETUVAR __fish_initialized:3400
SETUVAR fish_color_autosuggestion:4D5566
SETUVAR fish_color_cancel:\x2d\x2dreverse
SETUVAR fish_color_command:39BAE6
SETUVAR fish_color_comment:626A73
SETUVAR fish_color_cwd:59C2FF
SETUVAR fish_color_cwd_root:red
SETUVAR fish_color_end:F29668

Keybase proof

I hereby claim:

  • I am bfren on github.
  • I am bcg (https://keybase.io/bcg) on keybase.
  • I have a public key whose fingerprint is ACFB 52BF 5BE8 5296 C7A2 17FD 728B C971 9B6A D60F

To claim this, I am signing this object: