profile: fixed - function.
This commit is contained in:
parent
bd572d40a1
commit
76e351d7c7
1 changed files with 2 additions and 2 deletions
4
profile
4
profile
|
@ -126,10 +126,10 @@ tmpcdfile = `{mktemp}
|
|||
|
||||
fn c {
|
||||
# History implementation.
|
||||
oldpwd = `{pwd}
|
||||
if(builtin cd $1 && test -n $1){
|
||||
pwd = `{pwd}
|
||||
cat $cdfile > $tmpcdfile
|
||||
{echo $pwd ; cat $tmpcdfile } | \
|
||||
{echo $oldpwd ; cat $tmpcdfile } | \
|
||||
sed $maxcds^q | goblin uniq -U > $cdfile
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue