|
|
@ -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) {
|
|
|
|