D
D
Dmitrii Solovev2014-05-19 16:00:18
linux
Dmitrii Solovev, 2014-05-19 16:00:18

How to make such a terminal design?

Recently I started to learn the terminal for mac os. And I came across non-standard commands and design in the video.
www.youtube.com/watch?v=1mZ6nV-dlso at 0:30
How can you customize the appearance and commands of the terminal like this?
to papka
sub index.html
Obviously do not work in default.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
I
Igor, 2014-05-19
@dimonnwc3

Writing alias for longer commands:
en.wikipedia.org/wiki/Alias_%28bash%29

S
Stepan, 2014-05-19
@L3n1n

https://www.sublimetext.com/docs/2/osx_command_lin...
Here is an example of how to run Sublime Text from a terminal. And then in the file ~ / .profile we create an alias sub which will open Sublime and create a new file with the specified name.

M
Maxim Samoilov, 2014-06-10
@Nitive

The prompt string is changed by editing the PS1 variable
. For example, I have PS1='\[\e[1;34m\]\W: ⤷\[\e[0m\] '
Abbreviations, as already said, using alias

A couple of mine
alias vim='open -a /Applications/MacVim.app'
alias sublime='open -a /Applications/Sublime\ Text.app'
alias p3='python3'

Colors in settings:
hkar.ru/tiKA
My terminal:
hkar.ru/tiKz

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question