Transform your command line from ugly and painful to delightful and easy-to-read.
First things first, you'll want to install a nice color theme for your terminal. The one in the screenshot above is called Monokai Soda Custom, and you'll find it included in the repo. I based it off of the most excellent Monokai Soda theme, found here.
Load the theme by opening up your mac terminal and navigating to Preferences > Profiles > Import, and then set the theme as your default.
Now log into your bash terminal and punch in the following git config commands. You should be able to copy & paste them as a full block and just hit return. This tells git that we want color in our UI, and sets specific colors for specific file status types.
git config --global color.ui true
git config --global color.status.changed "blue normal"
git config --global color.status.untracked "red normal"
git config --global color.status.added "magenta normal"
git config --global color.status.updated "green normal"
git config --global color.status.branch "yellow normal bold"
git config --global color.status.header "white normal bold"
Now you'll need to update your .bash_profile with the contents of the bash_profile included in the repo. The easiest way to do this will be to first show all hidden files on your system, because .bash_profile is usually set to invisible. You can show hidden files by pasting the following command into your terminal.
defaults write com.apple.finder AppleShowAllFiles YES; killall Finder /System/Library/CoreServices/Finder.app
Once your finder reloads, you should be able to see all hidden files. In the finder, navigate to Users/YourUserNameHere, and you should see .bash_profile listed in the directory. If you don't, you simply have to create one yourself (just place an empty text file there and name it .bash_profile.)
Either way, open your .bash_profile and paste in the contents of the bash_profile included in this repo (paste it beneath any other content that's already in there.) Now save the file.
Congratulations! Your .bash_profile now includes all the code that your terminal needs to display it's UI in color, including a nicely colorized bash -ls command, a customized command prompt, and aliases for a number of highly-readable git log formats. You can customize these to your heart's content, but hopefully this will give you a solid jumping-off point.
Now let's hide those invisible files again, by pasting the following command into the terminal and hitting return.
defaults write com.apple.finder AppleShowAllFiles NO; killall Finder /System/Library/CoreServices/Finder.app
Restart the terminal app, and you're ready to go!
With any luck, you should now have a nice looking command line terminal running on your Mac. If you like, point the terminal to one of your git repositories and take a few of the included git log aliases for a ride.
log
Type in 'log' and hit return, and you should get a nicely formatted basic log, starting with a list of refs on top, followed by all your commits.
Now explore the other colorized aliases if you like:
Lastly, type in the trusty '-ls' bash command and you should see a nicely colorized list of files, directories, etc.
Well, that's it. You're good to go!
Distributed under the MIT license. See LICENSE
for more information.
1、获取端口 在代理工具中获取其开放的 HTTP 端口,比如这里使用的端口是 1088 2、配置代理 bash 终端 bash 是 macOS Mojave 及更低版本中的默认 Shell 终端 a) 打开终端文件 方法一:使用命令行 vi ~/.bash_profile 方法二:直接在Finder中手动打开,.bash_profile文件默认隐藏,在user的主目录中键盘输入快捷键 comma
安装 GIT 打开 MACOS 命令行工具,在根目录下直接输入如下命令即可自动安装 git 输入如下命令查询 git 版本信息,注意是两个 - git --version ## 输出版本号则表示安装成功 git version 2.30.1 (Apple Git-130) 设置 git 用户名和邮箱 在提交代码时会附带用户名和邮箱信息,从而定位到代码的负责人 git config --glo
npm安装truffle-contract时报如下错误 % npm install truffle-contract --save npm ERR! code 128 npm ERR! An unknown git error occurred npm ERR! command git --no-replace-objects
安装Git 在终端 Terminal 里查看git版本 git --version 如果没有安装过命令行开发者工具,将会提示你安装。 如果你想安装更新的版本,可以使用二进制安装程序。 官方维护的 macOS Git 安装程序可以在 Git 官方网站下载,网址为: https://git-scm.com/download/mac。 Git环境配置 配置用户名和邮件地址 安装完 Git 之后,要做的
解决办法: git config --unset-all credential.helper git config --global credential.helper osxkeychain 原因: The problem is that you're trying to use the wincred credential helper, which is only available o
更新了XCode后,在Terminal使用git,发现报错: dyld: Library not loaded: @rpath/libswiftCore.dylib Referenced from: /Applications/Xcode.app/Contents/Developer/usr/bin/xcodebuild Reason: image not found git: error
有些问题 Git must be installed and in your PATH! /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"出现异常了 Warning: git-2.7.4 already installed 一种解决方案 打开终端,输入
2022/03/14 本次配置ed25519 ssh-keygen -t ed25519 -C "<comment>" http://gitlab.inzwc.com/help/ssh/index#generate-an-ssh-key-pair 参考/后续整合看看: http://gitlab.inzwc.com/help/ssh/index#generate-an-ssh-key-pair h
最近使用使用windows terminal的的时候,想起来,它已经自己自动集成了4种命令行,我每次打开git的时候是单独的,很不方便,想到集成到一起会比较方便管理和使用。便研究了一下,配置起来很简单。 依次点击:下拉框 → 设置 → 添加新配置文件 → 新建空配置文件 → 常规 然后就可以自定义了 我的配置文件的git安装home目录是D:\Program Files\Git,按需修改 名称:G
安装Homebrew,安装git之前需要使用 执行命令 /bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)" 上面的命令需要执行两次 执行命令brew install git 执行下面的命令: git config --global user.name "xx" git con
Kap 是一款使用 Web 技术构建的开源屏幕录像机,目前仅支持 macOS。 安装: 下载或使用 Homebrew Cask 安装 $ brew update$ brew cask install kap 截图:
Podman for macOS 是 macOS 平台的 Podman 前端,它可以用来启动和停止 Podman 虚拟机及其运行的容器。如果你还没有通过 podman machine 设置虚拟机,该应用程序会帮你自动设置并启动。
BlackHole 是一种现代 macOS 虚拟音频驱动程序,它允许应用程序以零附加延迟将音频传递给其他应用程序。 特征 支持 2、16 或 64 个音频通道版本 可定制为 256+ 个音频通道 支持 44.1kHz、48kHz、88.2kHz、96kHz、176.4kHz 和 192kHz 采样率 没有驱动程序延迟 兼容 macOS Mavericks (10.9) 到 macOS Big Su
Matrix for iOS/macOS 是一款微信团队研发并日常使用的性能探针工具,目前集成在 iOS 和 macOS 微信的 APM(Application Performance Manage)平台中使用。Matrix for iOS/macOS 建立了一套 iOS 和 macOS 平台上统一的应用性能接入框架,通过对性能监控项的异常数据进行采集,帮助开发者开发出更高质量的应用,从而提升应用
JS Beautifier This little beautifier will reformat and re-indent bookmarklets, uglyJavaScript, unpack scripts packed by Dean Edward’s popular packer,as well as partly deobfuscate scripts processed by
CSS Beautify 是一个 JavaScript 实现的,用来对 CSS 代码进行格式化,使之更加容易阅读的工具。