Fixed echoing "which" command.
This commit is contained in:
parent
b59f11313b
commit
8355c3e547
1 changed files with 6 additions and 4 deletions
10
profile
10
profile
|
@ -68,7 +68,7 @@ xmodmap = $lib/xmodmap
|
||||||
|
|
||||||
switch( `{uname} ){
|
switch( `{uname} ){
|
||||||
case ( Linux NetBSD DragonFly OpenBSD FreeBSD ) # On Unix-like systems.
|
case ( Linux NetBSD DragonFly OpenBSD FreeBSD ) # On Unix-like systems.
|
||||||
if(which aes){
|
if(which aes > /dev/null){
|
||||||
LESS_TERMCAP_md = `{aes fg-red bold }
|
LESS_TERMCAP_md = `{aes fg-red bold }
|
||||||
LESS_TERMCAP_me = `{aes end}
|
LESS_TERMCAP_me = `{aes end}
|
||||||
LESS_TERMCAP_us = `{aes fg-green bold}
|
LESS_TERMCAP_us = `{aes fg-green bold}
|
||||||
|
@ -122,13 +122,15 @@ fn ll {
|
||||||
cds = (`{pwd})
|
cds = (`{pwd})
|
||||||
fn cd {
|
fn cd {
|
||||||
# History implementation.
|
# History implementation.
|
||||||
if(builtin cd $1 && test -n $1)
|
if(builtin cd $1 && test -n $1){
|
||||||
cds = (`{pwd} $cds)
|
pwd = `{pwd}
|
||||||
|
cds = ($pwd $cds)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn - {
|
fn - {
|
||||||
# Move back in history for $1 notes.
|
# Move back in history for $1 notes.
|
||||||
if(test -z $1)
|
if(~ $#* 0)
|
||||||
1 = 1
|
1 = 1
|
||||||
builtin cd $cds($1)
|
builtin cd $cds($1)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue