Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
Functions
alias.h File Reference

Managing livl-shell aliases. More...

#include "constants.h"
#include "typedef.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <stdlib.h>
#include "utils.h"
Include dependency graph for alias.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void init_aliases ()
 Initialize aliases from file.
 
int is_alias (const char *name, char *command)
 Try to get an alias for a given name. More...
 
void free_aliases ()
 Free aliases.
 
void parse_aliases (char *input)
 Parse the input to replace aliases. More...
 

Detailed Description

Managing livl-shell aliases.

Author
Julien & Franck
Date
30 Dec 2023

Function Documentation

◆ is_alias()

int is_alias ( const char *  name,
char *  command 
)

Try to get an alias for a given name.

Parameters
nameThe name of the alias
commandThe string will be filled with the alias command if exist
Returns
0 if no alias found, 1 otherwise

◆ parse_aliases()

void parse_aliases ( char *  input)

Parse the input to replace aliases.

Parameters
inputThe input string