Skip to content

Set Shell configs for Mac Linux Windows(MinGW) and Android(Termux)

License

Notifications You must be signed in to change notification settings

jerrywdlee/my-shell-configs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

63 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

My Shell Configs

Easy shell configs for setup

Usage

Install

Clone Repo

git clone https://github.com/jerrywdlee/my-shell-configs.git ~/.my-shell-configs

Configuration

Bash on Mac or Linux
echo -e "\nsource \$HOME/.my-shell-configs/bash/my_shell.bash\n" >> ~/.bash_profile && source ~/.bash_profile

On 1st run, it will download dependency scripts from github.

Zsh on Mac or Linux
echo -e "\n. \$HOME/.my-shell-configs/zsh/my_shell.bash\n" >> ~/.zshrc && . ~/.zshrc
# if need nodenv or rbenv etc.
echo -e "\n. \$HOME/.my-shell-configs/lib/env_options.sh\n" >> ~/.zshrc && . ~/.zshrc
Bash on Android(Termux)
echo -e "\nsource \$HOME/.my-shell-configs/termux/my_shell.bash\n" >> ~/.bash_profile && . ~/.bash_profile
MinGW on Windows
echo -e "\nsource \$HOME/.my-shell-configs/MinGW/my_shell.bash\n" >> ~/.bash_profile && source ~/.bash_profile

Addition

Use Custom PS1
# Example: add an Raspberry Pi like PS1 with git functions
## in ~/.bash_profile
# ...
source $HOME/.my-shell-configs/bash/my_shell.bash
export PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[\033[01;34m\]$(__git_ps1 "[\[\033[36m\]$(__my_git_prompt_repo_name) \[\033[31m\]%s\[\033[01;34m\]]")\$\[\033[00m\] '
# ...

GNU General Public License v3.0
Copyright (C) 2018 Jerry Lee

About

Set Shell configs for Mac Linux Windows(MinGW) and Android(Termux)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages