1
Fork 0
mirror of https://github.com/RGBCube/nu_scripts synced 2025-08-01 06:37:46 +00:00

Merge pull request #30 from fdncred/main

updated title to match nushell changes
This commit is contained in:
Darren Schroeder 2021-03-09 07:41:21 -06:00 committed by GitHub
commit 6b8f9e21f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -79,7 +79,7 @@ def git_br [] {
# Set Title String custom commands
def set_title_str [str-arg] {
echo [$(ansi title) ' ' $str-arg ' ' $(ansi bel)] | str collect
echo [$(ansi title) ' ' $str-arg ' ' $(char bel)] | str collect
}
def get_abbrev_pwd_win [] {
echo [$(pwd | split row '\' | first $(pwd | split row '\' | count | each {= $it - 1} ) | str substring '0,1' | format '{$it}/' | append $(pwd | split row '\' | last ) | str collect)] | str collect