Created
January 4, 2021 01:28
-
-
Save ranggasama/417d99f606050cafe87498507364c7e5 to your computer and use it in GitHub Desktop.
WSL2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
export TERM="xterm-256color" | |
# Path to your oh-my-zsh installation. | |
export ZSH="/home/ranggasama/.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="powerlevel10k/powerlevel10k" | |
############ POWERLEVEL THEME SETTINGS ############## | |
POWERLEVEL9K_MODE=nerdfont-complete | |
POWERLEVEL9K_SHORTEN_STRATEGY=truncate_beginning | |
POWERLEVEL9K_PROMPT_ADD_NEWLINE=true | |
POWERLEVEL9K_PROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_RPROMPT_ON_NEWLINE=true | |
POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 | |
POWERLEVEL9K_OS_ICON_CONTENT_EXPANSION='${P9K_CONTENT} $(whoami | grep -v "^root\$")' | |
POWERLEVEL9K_OS_ICON_BACKGROUND=red | |
POWERLEVEL9K_OS_ICON_FOREGROUND=white | |
POWERLEVEL9K_ROOT_INDICATOR_BACKGROUND=black | |
POWERLEVEL9K_ROOT_INDICATOR_FOREGROUND=red | |
POWERLEVEL9K_SSH_BACKGROUND=white | |
POWERLEVEL9K_SSH_FOREGROUND=blue | |
POWERLEVEL9K_FOLDER_ICON= | |
POWERLEVEL9K_DIR_BACKGROUND=blue | |
POWERLEVEL9K_DIR_FOREGROUND=black | |
POWERLEVEL9K_DIR_WRITABLE_BACKGROUND=black | |
POWERLEVEL9K_DIR_WRITABLE_FOREGROUND=red | |
POWERLEVEL9K_VCS_CLEAN_FOREGROUND=black | |
POWERLEVEL9K_VCS_CLEAN_BACKGROUND=green | |
POWERLEVEL9K_VCS_UNTRACKED_FOREGROUND=black | |
POWERLEVEL9K_VCS_UNTRACKED_BACKGROUND=yellow | |
POWERLEVEL9K_VCS_MODIFIED_FOREGROUND=white | |
POWERLEVEL9K_VCS_MODIFIED_BACKGROUND=black | |
POWERLEVEL9K_VCS_UNTRACKED_ICON=● | |
POWERLEVEL9K_VCS_UNSTAGED_ICON=± | |
POWERLEVEL9K_VCS_INCOMING_CHANGES_ICON=↓ | |
POWERLEVEL9K_VCS_OUTGOING_CHANGES_ICON=↑ | |
POWERLEVEL9K_VCS_COMMIT_ICON=$s | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_STATUS_VERBOSE=false | |
POWERLEVEL9K_STATUS_OK_IN_NON_VERBOSE=true | |
POWERLEVEL9K_EXECUTION_TIME_ICON=$s | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_THRESHOLD=0 | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_BACKGROUND=black | |
POWERLEVEL9K_COMMAND_EXECUTION_TIME_FOREGROUND=blue | |
POWERLEVEL9K_COMMAND_BACKGROUND_JOBS_BACKGROUND=black | |
POWERLEVEL9K_COMMAND_BACKGROUND_JOBS_FOREGROUND=cyan | |
POWERLEVEL9K_TIME_ICON= | |
POWERLEVEL9K_TIME_FORMAT='%D{%I:%M}' | |
POWERLEVEL9K_TIME_BACKGROUND=black | |
POWERLEVEL9K_TIME_FOREGROUND=white | |
POWERLEVEL9K_RAM_ICON= | |
POWERLEVEL9K_RAM_FOREGROUND=black | |
POWERLEVEL9K_RAM_BACKGROUND=yellow | |
POWERLEVEL9K_VI_MODE_FOREGROUND=black | |
POWERLEVEL9K_VI_COMMAND_MODE_STRING=NORMAL | |
POWERLEVEL9K_VI_MODE_NORMAL_BACKGROUND=green | |
POWERLEVEL9K_VI_VISUAL_MODE_STRING=VISUAL | |
POWERLEVEL9K_VI_MODE_VISUAL_BACKGROUND=blue | |
POWERLEVEL9K_VI_OVERWRITE_MODE_STRING=OVERTYPE | |
POWERLEVEL9K_VI_MODE_OVERWRITE_BACKGROUND=red | |
POWERLEVEL9K_VI_INSERT_MODE_STRING= | |
POWERLEVEL9K_LEFT_PROMPT_FIRST_SEGMENT_START_SYMBOL='\uE0B2' | |
POWERLEVEL9K_RIGHT_PROMPT_LAST_SEGMENT_END_SYMBOL='\uE0B0' | |
POWERLEVEL9K_MULTILINE_FIRST_PROMPT_PREFIX='%F{blue}╭─' | |
POWERLEVEL9K_MULTILINE_LAST_PROMPT_PREFIX='%F{blue}╰%f ' | |
POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(os_icon root_indicator ssh dir dir_writable vcs) | |
POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(vi_mode status command_execution_time background_jobs time ram) | |
############# END- POWERLEVEL THEME SETTINGS ############## | |
# 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 $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 $ZSH/plugins/ | |
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ | |
# Example format: plugins=(rails git textmate ruby lighthouse) | |
# Add wisely, as too many plugins slow down shell startup. | |
plugins=( | |
git | |
sudo | |
colored-man-pages | |
zsh-syntax-highlighting | |
zsh-autosuggestions | |
) | |
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="vim ~/.zshrc" | |
alias ohmyzsh="vim ~/.oh-my-zsh" | |
alias grm="git rebase master" | |
alias grc="git rebase --continue" | |
alias gra="git rebase --abort" | |
alias grs="git rebase --skip" | |
alias gpo="git push origin" | |
alias gpl="ggpull" | |
alias gps="ggpush" | |
alias gplo="git pull origin" | |
alias gs="git stash" | |
alias gsa="git stash apply" | |
alias vi="vim" | |
alias dps="docker ps" | |
alias dk="docker kill" | |
alias dpsa="docker ps -a" | |
alias dipa="dipa" | |
alias drm="docker rm" | |
alias jh="jhipster" | |
alias cl="clear" | |
alias open="google-chrome" | |
alias fopen="xdg-open" | |
alias lmt="sudo lmt-config-gui" | |
alias lla="ls -la" | |
alias pip="pip3" | |
alias python="python3" | |
alias k="kubectl" | |
alias ls='lsd' | |
alias l='ls -l' | |
alias la='ls -a' | |
alias lla='ls -la' | |
alias lt='ls --tree' | |
function dipa(){ | |
docker rm -v $(docker ps -a -q -f status=exited); | |
docker volume rm $(docker volume ls -qf dangling=true); | |
docker rmi $(docker images -qf dangling=true); | |
} | |
function mkcd { | |
command mkdir $1 && cd $1 | |
} | |
function lazygit() { | |
git status . | |
git add . | |
git commit -m "$@" | |
git push origin HEAD | |
} | |
autoload -U compinit && compinit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment