0

create custom command in macOS

Open your terminal and run the following command

.bash_profile is and essential of customizing and configuration your bash command line enviroment on Unix and Linux systems

cd && vim .bash_profile 
Captura de pantalla 2023-09-16 a la(s) 15.56.23.png

it will open the vim code editor in the .bash_profile file, here we can add a custom command in my case it will be dev using the Unix alias instruction to direct me to my development folder where I save projects and it will show them

close and open the terminal

Captura de pantalla 2023-09-16 a la(s) 15.57.54.png

run dev and it will take us to our development folder (the path must be absolute and personal).

Escribe tu comentario
+ 2