Skip to content

Instantly share code, notes, and snippets.

@pranavek
Forked from yovko/ohmyzsh.md
Created January 23, 2021 10:09
Show Gist options
  • Select an option

  • Save pranavek/f82f99f64b36469af81124038a6823c7 to your computer and use it in GitHub Desktop.

Select an option

Save pranavek/f82f99f64b36469af81124038a6823c7 to your computer and use it in GitHub Desktop.

Revisions

  1. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@
    sudo pacman -Syu zsh
    ```

    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My ZSH.
    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My Zsh.

    #### 1. Install [Oh My ZSH](https://ohmyz.sh/)

  2. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1,6 +1,6 @@
    # ZSH (using Oh My ZSH) on Manjaro Linux

    #### 0. If zsh is not already installed on your Manjaro system you can do it with the command:
    #### 0. If `ZSH` is not already installed on your Manjaro system you can do it with the command:

    ```
    sudo pacman -Syu zsh
  3. @yovko yovko renamed this gist Apr 17, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. @yovko yovko revised this gist Apr 17, 2020. 2 changed files with 0 additions and 110 deletions.
    108 changes: 0 additions & 108 deletions .zshrc
    Original file line number Diff line number Diff line change
    @@ -1,108 +0,0 @@
    # If you come from bash you might have to change your $PATH.
    # export PATH=$HOME/bin:/usr/local/bin:$PATH

    # Path to your oh-my-zsh installation.
    export ZSH="/home/yovko/.oh-my-zsh"

    # Set name of the theme to load --- if set to "random", it will
    # load a random theme each time oh-my-zsh is loaded, in which case,
    # to know which specific one was loaded, run: echo $RANDOM_THEME
    # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
    #ZSH_THEME="robbyrussell"
    ZSH_THEME="agnoster"

    # Set list of themes to pick from when loading at random
    # Setting this variable when ZSH_THEME=random will cause zsh to load
    # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
    # If set to an empty array, this variable will have no effect.
    # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

    # Uncomment the following line to use case-sensitive completion.
    # CASE_SENSITIVE="true"

    # Uncomment the following line to use hyphen-insensitive completion.
    # Case-sensitive completion must be off. _ and - will be interchangeable.
    # HYPHEN_INSENSITIVE="true"

    # Uncomment the following line to disable bi-weekly auto-update checks.
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment the following line to automatically update without prompting.
    # DISABLE_UPDATE_PROMPT="true"

    # Uncomment the following line to change how often to auto-update (in days).
    # export UPDATE_ZSH_DAYS=13

    # Uncomment the following line if pasting URLs and other text is messed up.
    # DISABLE_MAGIC_FUNCTIONS=true

    # Uncomment the following line to disable colors in ls.
    # DISABLE_LS_COLORS="true"

    # Uncomment the following line to disable auto-setting terminal title.
    # DISABLE_AUTO_TITLE="true"

    # Uncomment the following line to enable command auto-correction.
    # ENABLE_CORRECTION="true"

    # Uncomment the following line to display red dots whilst waiting for completion.
    # COMPLETION_WAITING_DOTS="true"

    # Uncomment the following line if you want to disable marking untracked files
    # under VCS as dirty. This makes repository status check for large repositories
    # much, much faster.
    # DISABLE_UNTRACKED_FILES_DIRTY="true"

    # Uncomment the following line if you want to change the command execution time
    # stamp shown in the history command output.
    # You can set one of the optional three formats:
    # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
    # or set a custom format using the strftime function format specifications,
    # see 'man strftime' for details.
    # HIST_STAMPS="mm/dd/yyyy"

    # Would you like to use another custom folder than $ZSH/custom?
    # ZSH_CUSTOM=/path/to/new-custom-folder

    # Which plugins would you like to load?
    # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate ruby lighthouse)
    # Add wisely, as too many plugins slow down shell startup.
    plugins=(git
    zsh-autosuggestions
    zsh-syntax-highlighting
    )

    source $ZSH/oh-my-zsh.sh

    # User configuration

    # export MANPATH="/usr/local/man:$MANPATH"

    # You may need to manually set your language environment
    # export LANG=en_US.UTF-8

    # Preferred editor for local and remote sessions
    # if [[ -n $SSH_CONNECTION ]]; then
    # export EDITOR='vim'
    # else
    # export EDITOR='mvim'
    # fi

    # Compilation flags
    # export ARCHFLAGS="-arch x86_64"

    # Set personal aliases, overriding those provided by oh-my-zsh libs,
    # plugins, and themes. Aliases can be placed here, though oh-my-zsh
    # users are encouraged to define aliases within the ZSH_CUSTOM folder.
    # For a full list of active aliases, run `alias`.
    #
    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"
    alias pupd="sudo pacman -Syu"
    alias pupda="sudo pacman -Syyu"
    alias pupdf="sudo pacman -Syyuu"
    alias porph="pacman -Qdt"
    alias pclc="sudo pacman -Sc"
    2 changes: 0 additions & 2 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -51,8 +51,6 @@ ZSH_THEME="agnoster"
    source ~/.zshrc
    ```

    My basic `.zshrc` file is attached.

    #### 5. Make zsh default if you haven't already:
    ```
    chsh -s $(which zsh)
  5. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions README.md
    Original file line number Diff line number Diff line change
    @@ -51,6 +51,8 @@ ZSH_THEME="agnoster"
    source ~/.zshrc
    ```

    My basic `.zshrc` file is attached.

    #### 5. Make zsh default if you haven't already:
    ```
    chsh -s $(which zsh)
  6. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion README.md
    Original file line number Diff line number Diff line change
    @@ -20,7 +20,7 @@ or
    sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
    ```

    #### 2. Installation of two most important plugins I can't live without
    #### 2. Installation of two important plugins I can't live without

    ```
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
  7. @yovko yovko renamed this gist Apr 17, 2020. 1 changed file with 8 additions and 8 deletions.
    16 changes: 8 additions & 8 deletions ohmyzsh.md → README.md
    Original file line number Diff line number Diff line change
    @@ -1,14 +1,14 @@
    # ZSH (with Oh My ZSH) on Manjaro Linux
    # ZSH (using Oh My ZSH) on Manjaro Linux

    0. If zsh is not already installed on your Manjaro system you can do it with the command:
    #### 0. If zsh is not already installed on your Manjaro system you can do it with the command:

    ```
    sudo pacman -Syu zsh
    ```

    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My ZSH.

    ####1. Install [Oh My ZSH](https://ohmyz.sh/)
    #### 1. Install [Oh My ZSH](https://ohmyz.sh/)

    ```
    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    @@ -20,7 +20,7 @@ or
    sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
    ```

    ####2. Installation of two most important plugins I can't live without
    #### 2. Installation of two most important plugins I can't live without

    ```
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    @@ -30,7 +30,7 @@ and
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    ```

    ####3. Configuring zsh
    #### 3. Configuring zsh

    Modify the `~./zshrc` config file editting plugins section like this:
    ```
    @@ -46,14 +46,14 @@ Change the theme to agnoster:
    ZSH_THEME="agnoster"
    ```

    ####4. Logout/logon or apply the changes with:
    #### 4. Logout/logon or apply the changes with:
    ```
    source ~/.zshrc
    ```

    ####5. Make zsh default if you haven't already:
    #### 5. Make zsh default if you haven't already:
    ```
    chsh -s $(which zsh)
    ```

    ####6. Enjoy!
    #### 6. Enjoy!
  8. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 6 additions and 7 deletions.
    13 changes: 6 additions & 7 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -8,7 +8,7 @@ sudo pacman -Syu zsh

    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My ZSH.

    1. Install [Oh My ZSH](https://ohmyz.sh/)
    ####1. Install [Oh My ZSH](https://ohmyz.sh/)

    ```
    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    @@ -20,7 +20,7 @@ or
    sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
    ```

    2. Installation of two most important plugins I can't live without
    ####2. Installation of two most important plugins I can't live without

    ```
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    @@ -30,7 +30,7 @@ and
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    ```

    3. Configuring zsh
    ####3. Configuring zsh

    Modify the `~./zshrc` config file editting plugins section like this:
    ```
    @@ -46,15 +46,14 @@ Change the theme to agnoster:
    ZSH_THEME="agnoster"
    ```

    4. Logout/logon or apply the changes with:
    ####4. Logout/logon or apply the changes with:
    ```
    source ~/.zshrc
    ```

    5. Make zsh default if you haven't already:
    ####5. Make zsh default if you haven't already:
    ```
    chsh -s $(which zsh)
    ```

    6. Enjoy!
    ```
    ####6. Enjoy!
  9. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -39,6 +39,7 @@ plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    )
    ```

    Change the theme to agnoster:
    ```
  10. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 17 additions and 0 deletions.
    17 changes: 17 additions & 0 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -39,4 +39,21 @@ plugins=(
    zsh-autosuggestions
    zsh-syntax-highlighting
    )
    Change the theme to agnoster:
    ```
    ZSH_THEME="agnoster"
    ```
    4. Logout/logon or apply the changes with:
    ```
    source ~/.zshrc
    ```
    5. Make zsh default if you haven't already:
    ```
    chsh -s $(which zsh)
    ```
    6. Enjoy!
    ```
  11. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 6 additions and 4 deletions.
    10 changes: 6 additions & 4 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -30,11 +30,13 @@ and
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    ```

    3. Configuring zsh

    Modify the `~./zshrc` config file editting plugins section like this:
    ```
    plugins=(
    archlinux
    git
    history-substring-search
    colored-man-pages
    zsh-autosuggestions
    zsh-syntax-highlighting
    )
    )
    ```
  12. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 15 additions and 3 deletions.
    18 changes: 15 additions & 3 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -10,13 +10,25 @@ You do not need to install `manjaro-zsh-config` and all the other related packag

    1. Install [Oh My ZSH](https://ohmyz.sh/)

    install ohmyzsh
    ```
    sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"
    ```

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
    or

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    ```
    sh -c "$(wget https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh -O -)"
    ```

    2. Installation of two most important plugins I can't live without

    ```
    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting
    ```
    and
    ```
    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions
    ```

    plugins=(
    archlinux
  13. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 3 additions and 1 deletion.
    4 changes: 3 additions & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1,13 +1,15 @@
    # ZSH (with Oh My ZSH) on Manjaro Linux

    If zsh is not already installed on your Manjaro system you can do it with the command:
    0. If zsh is not already installed on your Manjaro system you can do it with the command:

    ```
    sudo pacman -Syu zsh
    ```

    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My ZSH.

    1. Install [Oh My ZSH](https://ohmyz.sh/)

    install ohmyzsh

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  14. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1,12 +1,13 @@
    ZSH (with Oh My ZSH) on Manjaro Linux
    # ZSH (with Oh My ZSH) on Manjaro Linux

    If zsh is not installed already you can do it with:
    If zsh is not already installed on your Manjaro system you can do it with the command:

    ```
    sudo pacman -S zsh
    sudo pacman -Syu zsh
    ```

    do not install other components
    You do not need to install `manjaro-zsh-config` and all the other related packages like `zsh-syntax-highlighting`, `zsh-history-substring-search`, `zsh-autosuggestions`, etc., as we will use Oh My ZSH.

    install ohmyzsh

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"
  15. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 7 additions and 1 deletion.
    8 changes: 7 additions & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,10 @@
    zsh is istalled by default
    ZSH (with Oh My ZSH) on Manjaro Linux

    If zsh is not installed already you can do it with:

    ```
    sudo pacman -S zsh
    ```

    do not install other components
    install ohmyzsh
  16. @yovko yovko revised this gist Apr 17, 2020. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,5 @@
    zsh is istalled by default
    zsh is istalled by default

    do not install other components
    install ohmyzsh

  17. @yovko yovko renamed this gist Apr 17, 2020. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  18. @yovko yovko revised this gist Apr 17, 2020. 2 changed files with 126 additions and 1 deletion.
    108 changes: 108 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,108 @@
    # If you come from bash you might have to change your $PATH.
    # export PATH=$HOME/bin:/usr/local/bin:$PATH

    # Path to your oh-my-zsh installation.
    export ZSH="/home/yovko/.oh-my-zsh"

    # Set name of the theme to load --- if set to "random", it will
    # load a random theme each time oh-my-zsh is loaded, in which case,
    # to know which specific one was loaded, run: echo $RANDOM_THEME
    # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
    #ZSH_THEME="robbyrussell"
    ZSH_THEME="agnoster"

    # Set list of themes to pick from when loading at random
    # Setting this variable when ZSH_THEME=random will cause zsh to load
    # a theme from this variable instead of looking in ~/.oh-my-zsh/themes/
    # If set to an empty array, this variable will have no effect.
    # ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" )

    # Uncomment the following line to use case-sensitive completion.
    # CASE_SENSITIVE="true"

    # Uncomment the following line to use hyphen-insensitive completion.
    # Case-sensitive completion must be off. _ and - will be interchangeable.
    # HYPHEN_INSENSITIVE="true"

    # Uncomment the following line to disable bi-weekly auto-update checks.
    # DISABLE_AUTO_UPDATE="true"

    # Uncomment the following line to automatically update without prompting.
    # DISABLE_UPDATE_PROMPT="true"

    # Uncomment the following line to change how often to auto-update (in days).
    # export UPDATE_ZSH_DAYS=13

    # Uncomment the following line if pasting URLs and other text is messed up.
    # DISABLE_MAGIC_FUNCTIONS=true

    # Uncomment the following line to disable colors in ls.
    # DISABLE_LS_COLORS="true"

    # Uncomment the following line to disable auto-setting terminal title.
    # DISABLE_AUTO_TITLE="true"

    # Uncomment the following line to enable command auto-correction.
    # ENABLE_CORRECTION="true"

    # Uncomment the following line to display red dots whilst waiting for completion.
    # COMPLETION_WAITING_DOTS="true"

    # Uncomment the following line if you want to disable marking untracked files
    # under VCS as dirty. This makes repository status check for large repositories
    # much, much faster.
    # DISABLE_UNTRACKED_FILES_DIRTY="true"

    # Uncomment the following line if you want to change the command execution time
    # stamp shown in the history command output.
    # You can set one of the optional three formats:
    # "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd"
    # or set a custom format using the strftime function format specifications,
    # see 'man strftime' for details.
    # HIST_STAMPS="mm/dd/yyyy"

    # Would you like to use another custom folder than $ZSH/custom?
    # ZSH_CUSTOM=/path/to/new-custom-folder

    # Which plugins would you like to load?
    # Standard plugins can be found in ~/.oh-my-zsh/plugins/*
    # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/
    # Example format: plugins=(rails git textmate ruby lighthouse)
    # Add wisely, as too many plugins slow down shell startup.
    plugins=(git
    zsh-autosuggestions
    zsh-syntax-highlighting
    )

    source $ZSH/oh-my-zsh.sh

    # User configuration

    # export MANPATH="/usr/local/man:$MANPATH"

    # You may need to manually set your language environment
    # export LANG=en_US.UTF-8

    # Preferred editor for local and remote sessions
    # if [[ -n $SSH_CONNECTION ]]; then
    # export EDITOR='vim'
    # else
    # export EDITOR='mvim'
    # fi

    # Compilation flags
    # export ARCHFLAGS="-arch x86_64"

    # Set personal aliases, overriding those provided by oh-my-zsh libs,
    # plugins, and themes. Aliases can be placed here, though oh-my-zsh
    # users are encouraged to define aliases within the ZSH_CUSTOM folder.
    # For a full list of active aliases, run `alias`.
    #
    # Example aliases
    # alias zshconfig="mate ~/.zshrc"
    # alias ohmyzsh="mate ~/.oh-my-zsh"
    alias pupd="sudo pacman -Syu"
    alias pupda="sudo pacman -Syyu"
    alias pupdf="sudo pacman -Syyuu"
    alias porph="pacman -Qdt"
    alias pclc="sudo pacman -Sc"
    19 changes: 18 additions & 1 deletion ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -1 +1,18 @@
    Test
    zsh is istalled by default
    do not install other components
    install ohmyzsh

    sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"

    git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting

    git clone https://github.com/zsh-users/zsh-autosuggestions ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-autosuggestions

    plugins=(
    archlinux
    git
    history-substring-search
    colored-man-pages
    zsh-autosuggestions
    zsh-syntax-highlighting
    )
  19. @yovko yovko created this gist Apr 17, 2020.
    1 change: 1 addition & 0 deletions ohmyzsh.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    Test