Need 2 things: powerline fonts and spaceship. Check out mine at the end for detailed use! Theme: Spaceship
#Shell in mac text file install#
Plugins: Oh-My-ZSHįirst install ZSH then install oh-my-zsh. Notice how the command prompt changes, showing the git branch ( source), the git status (files to track, changes to commit and commits to push with ? ! and ⇡), the current python version and the time I spent in python! ( gst stands for git status and gp for git push, these are part of the git plugin in oh-my-zsh).
#Shell in mac text file mac#
The shell on your Mac is most probably an old bash. To enable it: preferences > profiles > keys > load preset > Natural Text Editing Shell: ZSH Usually option + → sends the cursor at the end of the current word. You should see a buch of files like ermcolors: just select them all and click on open. then chose the cloned folder and its shemes folder. $ git clone wherever you want then in iTerm2 go to preferences > profiles > colors > color preset > import. The iTerm community has designed hundreds! Check them out. Colorsįor instance you don’t have to stick with the few (ugly) default themes.
![shell in mac text file shell in mac text file](https://www.macobserver.com/wp-content/uploads/2016/08/Screenshot-2016-08-25-13.03.29.png)
![shell in mac text file shell in mac text file](https://lancelhoff.com/wp-content/uploads/new-text-file.jpg)
You can find the pros and cons here but basically it’s more customizable. But you could have a better terminal: iTerm2. The vast majority of things here would work for Linux. You can pause a video and copy-paste the texts! The videos of my terminal are recorded with Asciinema.
#Shell in mac text file free#
Feel free to suggest improvements in the comments! You can get my configuration files at the end of this article. Otherwise the terminal itself must save the session iTerm.app probably has more options for this (Session -> Log -> Start) than article details my personnal configuration. ( expect in particular has a log_file option that can be toggled to save everything, but then you'd be writing everything in TCL and not bash.) This requires installing expect from a ports system (Fink, Homebrew, or here MacPorts) which should install autoexpect: $ port installed | grep expectĦ:47 up 23 days, 11:32, 1 user, load averages: 1.37 1.39 1.33ĭoing something useful with script.exp in turn probably requires knowledge of expect and TCL, so this is a more advanced option.
![shell in mac text file shell in mac text file](http://theinstructional.s3.amazonaws.com/system_information/system_info-system_profiler.jpg)
![shell in mac text file shell in mac text file](https://www.hastac.org/sites/default/files/1st.png)
Then in the output typescript file there should be a record of the shell session run under script(1).īut wait, there's more! With expect one can also save a session and possibly replay it. Script started, output file is typescriptġ1:30 up 22 days, 16:15, 1 user, load averages: 1.43 1.37 1.38 That is, start a terminal, and run script, issue whatever commands need to be logged, then exit from that shell: $ script This can be done with the standard unix command script(1) though requires running a subshell under the current shell.