GithubHelp home page GithubHelp logo

macos-myway's Introduction

macOS Terminal Configuration

This repository contains a script for configuring the Terminal on macOS, based on the steps described in this blog post. The script installs iTerm2, Oh My Zsh, and the Powerlevel10k theme, and sets up several useful aliases and functions. Usage

To configure your Terminal using this script, follow these steps:

Clone this repository to your local machine:

git clone https://github.com/your-username/macos-terminal-configuration.git

Navigate to the cloned repository:

cd macos-terminal-configuration

Run the script:

./configure-terminal.sh

Restart your Terminal, or run the following command to reload the .zshrc file:

source ~/.zshrc

Features

The script configures the Terminal with the following features:

iTerm2 is installed using Homebrew
Oh My Zsh is installed using the official installation script
The Powerlevel10k theme is installed for Oh My Zsh
The iTerm2 preferences are set to use a custom color scheme and a Powerlevel10k profile
The Zsh theme is set to Powerlevel10k, and several additional features are enabled, including:
    Showing the context (user and hostname), directory, and VCS status in the left prompt
    Showing the current time and number of background jobs in the right prompt
    Shortening the directory name to two characters with a delimiter
    Truncating the VCS status to a maximum length of four characters
    Showing the current change set (commit hash) for the VCS
    Displaying the command execution time with a black background and yellow foreground if it exceeds a certain threshold
Syntax highlighting is enabled in the terminal using the zsh-syntax-highlighting plugin
Several useful aliases and functions are added to the .zshrc file, including:
    ll: list all files in the current directory in long format
    la: list all files in the current directory (including hidden files)
    l: list all files in the current directory in long format with human-readable file sizes
    c: clear the terminal screen
    e: exit the current shell session
    o: open the current directory in Finder
    mkd: create a new directory and enter it
    p: print the path of the current working directory with line numbers

License

This script is licensed under the MIT License.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.