mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Fix some typos.
This commit is contained in:
parent
1b521d0822
commit
e031fa7207
2 changed files with 4 additions and 4 deletions
|
@ -4,7 +4,7 @@
|
|||
|
||||
# Test if we are using GNU ls
|
||||
|
||||
function __fish_complete_ls -d "Compleletions for ls and its aliases"
|
||||
function __fish_complete_ls -d "Completions for ls and its aliases"
|
||||
|
||||
set -l is_gnu
|
||||
command ls --version >/dev/null ^/dev/null; and set is_gnu --is-gnu
|
||||
|
|
|
@ -1,14 +1,14 @@
|
|||
switch (uname)
|
||||
case Darwin
|
||||
function prompt_pwd --description "Print the current working directory, shortend to fit the prompt"
|
||||
function prompt_pwd --description "Print the current working directory, shortened to fit the prompt"
|
||||
echo $PWD | sed -e "s|^$HOME|~|" -e 's|^/private||' -e 's-\([^/.]\)[^/]*/-\1/-g'
|
||||
end
|
||||
case 'CYGWIN_*'
|
||||
function prompt_pwd --description "Print the current working directory, shortend to fit the prompt"
|
||||
function prompt_pwd --description "Print the current working directory, shortened to fit the prompt"
|
||||
echo $PWD | sed -e "s|^$HOME|~|" -e 's|^/cygdrive/\(.\)|\1/:|' -e 's-\([^/.]\)[^/]*/-\1/-g' -e 's-^\([^/]\)/:/\?-\u\1:/-'
|
||||
end
|
||||
case '*'
|
||||
function prompt_pwd --description "Print the current working directory, shortend to fit the prompt"
|
||||
function prompt_pwd --description "Print the current working directory, shortened to fit the prompt"
|
||||
echo $PWD | sed -e "s|^$HOME|~|" -e 's-\([^/.]\)[^/]*/-\1/-g'
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue