From 8c90baf675b973ed46873f9f4362857e7dab18f7 Mon Sep 17 00:00:00 2001 From: Adphi Date: Fri, 20 Apr 2018 20:40:50 +0200 Subject: [PATCH] Add aliases definition, explicit dependency install --- README.md | 91 +++++++++++++++++++++++-------------------------------- 1 file changed, 38 insertions(+), 53 deletions(-) diff --git a/README.md b/README.md index f7f08975..583eb05c 100644 --- a/README.md +++ b/README.md @@ -18,10 +18,10 @@ To learn more, visit [ohmyz.sh](http://ohmyz.sh) and follow [@ohmyzsh](https://t ### Prerequisites -__Disclaimer:__ _Oh My Zsh works best on macOS and Linux._ +__Disclaimer:__ _This custom Oh My Zsh only works on Linux._ -* Unix-like operating system (macOS or Linux) -* [Zsh](http://www.zsh.org) should be installed (v4.3.9 or more recent). If not pre-installed (`zsh --version` to confirm), check the following instruction here: [Installing ZSH](https://github.com/robbyrussell/oh-my-zsh/wiki/Installing-ZSH) +* Unix-like operating system (Linux) +* [Zsh](http://www.zsh.org) is installed along _Oh My Zsh_ (v4.3.9 or more recent). * `curl` or `wget` should be installed * `git` should be installed @@ -41,6 +41,41 @@ sh -c "$(curl -fsSL https://git.adphi.net/Adphi/oh-my-zsh/raw/master/tools/insta sh -c "$(wget https://git.adphi.net/Adphi/oh-my-zsh/raw/master/tools/install.sh -O -)" ``` +## Customs adds + +If zsh is not intalled, the script handle it. + + +Default theme is 'agnoster', with powerline fonts installation at the beginning of the script. + + +#### create a file along with folder path +```shell +fp filepath/myfile +``` + +#### alias to 'clear' +```shell +c +``` + +#### launch nano to edit zsh config +```shell +zshconfig +``` + +###### To do just after: + +#### refresh zsh configuration +```shell +zshrefresh +``` + +### TODO : +- improve aliases +- more aliases ... +- any help is welcome ... + ## Using Oh My Zsh ### Plugins @@ -118,56 +153,6 @@ ZSH_THEME_RANDOM_CANDIDATES=( ) ``` -## Advanced Topics - -If you're the type that likes to get their hands dirty, these sections might resonate. - -### Advanced Installation - -Some users may want to change the default path, or manually install Oh My Zsh. - -#### Custom Directory - -The default location is `~/.oh-my-zsh` (hidden in your home directory) - -If you'd like to change the install directory with the `ZSH` environment variable, either by running `export ZSH=/your/path` before installing, or by setting it before the end of the install pipeline like this: - -```shell -export ZSH="$HOME/.dotfiles/oh-my-zsh"; sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" -``` - -#### Manual Installation - -##### 1. Clone the repository: - -```shell -git clone https://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh -``` - -##### 2. *Optionally*, backup your existing `~/.zshrc` file: - -```shell -cp ~/.zshrc ~/.zshrc.orig -``` - -##### 3. Create a new zsh configuration file - -You can create a new zsh config file by copying the template that we have included for you. - -```shell -cp ~/.oh-my-zsh/templates/zshrc.zsh-template ~/.zshrc -``` - -##### 4. Change your default shell - -```shell -chsh -s /bin/zsh -``` - -##### 5. Initialize your new zsh configuration - -Once you open up a new terminal window, it should load zsh with Oh My Zsh's configuration. - ### Installation Problems If you have any hiccups installing, here are a few common fixes.