Skip to content

nhoxnho1212/Ubuntu20_setup_dev

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Set up environment Ubuntu 20

Update all app

  • Update is used resynchronize the package index file from their sources on Ubuntu Linux via the Internet.
sudo apt-get update
  • Upgrade is used to install the newest versions of all packages currently installed on the Ubuntu version.
sudo apt upgrade

Install gnome shell

sudo apt install gnome-shell-extensions 

Note: After install should be restarted.

Custom Dock

dock image

  • Install dconf-editor
sudo apt install dconf-editor
  • List commands will yield the result shown in the screenshot:
gsettings set org.gnome.shell.extensions.dash-to-dock dock-position BOTTOM
gsettings set org.gnome.shell.extensions.dash-to-dock transparency-mode FIXED
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 64
gsettings set org.gnome.shell.extensions.dash-to-dock unity-backlit-items true
gsettings set org.gnome.shell.extensions.dash-to-dock extend-height false
gsettings set org.gnome.shell.extensions.dash-to-dock dash-max-icon-size 32

Custom terminal

dock image

ZSH vs Oh my Zsh

Install ZSH:

sudo apt-get install zsh

find out the path of the ZSH shell:

which zsh

set ZSH as the default login shell for the user you’re logged in:

sudo usermod -s /usr/bin/zsh $(whoami)

Install Powerline Fonts :

sudo apt-get install fonts-powerline

Oh my Zsh is a Zsh configuration framework. To install it :

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

Theme

Powerlevel9k Zsh theme

git clone https://github.com/bhilburn/powerlevel9k.git ~/.oh-my-zsh/custom/themes/powerlevel9k

Then edit ~/.zshrc configuration file and set (Comment old default theme):

# ZSH_THEME="robbyrussell"
ZSH_THEME="powerlevel9k/powerlevel9k"

Dracula theme

Other tweaking

  • Shorter prompt: ~/.zshrc file

    POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(dir rbenv vcs virtualenv)
    POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status root_indicator background_jobs history time)
  • Change color of warning git status

    POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=’red’
  • New line after each prompt

    POWERLEVEL9K_PROMPT_ADD_NEWLINE=true
  • Use Cursor in new line

    POWERLEVEL9K_PROMPT_ON_NEWLINE=true
  • Make it beautiful with the $ character

    # Add a space in the first prompt
    POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX="%f"
    # Visual customisation of the second prompt line
    local user_symbol="$"
    if [[ $(print -P "%#") =~ "#" ]]; then
        user_symbol = "#"
    fi
    POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX="%{%B%F{black}%K{yellow}%} $user_symbol%{%b%f%k%F{yellow}%} %{%f%}"
  • Vertical cursor

Terminal Menu
  -> Preferences
    -> Profile
      -> Cursor
        -> Cursor Shape
          -> I-beam
  • Zim: is a Zsh configuration framework with blazing speed and modular extensions.
curl -fsSL https://raw.githubusercontent.com/zimfw/install/master/install.zsh | zsh

About

Set up ubuntu 20 environment for developer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages