mirror of
https://github.com/lowne/fish-prompt-metro.git
synced 2024-10-27 20:34:12 +00:00
fix pwd_info (possibly typo?)
This commit is contained in:
parent
ed0fcfe31f
commit
0d4f801150
@ -1,6 +1,6 @@
|
|||||||
function pwd_info -a separator -d "Print easy-to-parse information the current working directory"
|
function pwd_info -a separator -d "Print easy-to-parse information the current working directory"
|
||||||
set -l home ~
|
set -l home ~
|
||||||
set -l git_root (command git rev-parse --show-toplevel ^ /dev/null)
|
set -l git_root (command git rev-parse --show-toplevel 2> /dev/null)
|
||||||
|
|
||||||
command pwd -P | awk -v home="$home" -v git_root="$git_root" -v separator="$separator" -v dir_length="$fish_prompt_pwd_dir_length" '
|
command pwd -P | awk -v home="$home" -v git_root="$git_root" -v separator="$separator" -v dir_length="$fish_prompt_pwd_dir_length" '
|
||||||
function base(string) {
|
function base(string) {
|
||||||
|
Loading…
Reference in New Issue
Block a user