Skip to main content
added 1 character in body
Source Link
Stéphane Chazelas
  • 586.3k
  • 96
  • 1.1k
  • 1.7k

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^> /dev/null hostname | figlet end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figlet end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet > /dev/null hostname | figlet end 

See also Why not use “which”? What to use then?

deleted 1 character in body
Source Link
Stéphane Chazelas
  • 586.3k
  • 96
  • 1.1k
  • 1.7k

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figleyfiglet end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figley end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figlet end 

See also Why not use “which”? What to use then?

added 147 characters in body
Source Link
Stéphane Chazelas
  • 586.3k
  • 96
  • 1.1k
  • 1.7k

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figley end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

See also Why not use “which”? What to use then?

Use type in fish like in Bourne-like shell:

if type -q figlet hostname | figlet end 

Or to limit to executables in $PATH (ignoring functions, builtins):

if command -s figlet ^ /dev/null hostname | figley end 

See also Why not use “which”? What to use then?

Source Link
Stéphane Chazelas
  • 586.3k
  • 96
  • 1.1k
  • 1.7k
Loading