|
| 1 | +# If you come from bash you might have to change your $PATH. |
| 2 | +# export PATH=$HOME/bin:/usr/local/bin:$PATH |
| 3 | + |
| 4 | +# Path to your oh-my-zsh installation. |
| 5 | + export ZSH="/home/edvin/.oh-my-zsh" |
| 6 | + |
| 7 | +# Set name of the theme to load --- if set to "random", it will |
| 8 | +# load a random theme each time oh-my-zsh is loaded, in which case, |
| 9 | +# to know which specific one was loaded, run: echo $RANDOM_THEME |
| 10 | +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
| 11 | +ZSH_THEME="agnoster" |
| 12 | + |
| 13 | +# Set list of themes to pick from when loading at random |
| 14 | +# Setting this variable when ZSH_THEME=random will cause zsh to load |
| 15 | +# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ |
| 16 | +# If set to an empty array, this variable will have no effect. |
| 17 | +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) |
| 18 | + |
| 19 | +# Uncomment the following line to use case-sensitive completion. |
| 20 | +# CASE_SENSITIVE="true" |
| 21 | + |
| 22 | +# Uncomment the following line to use hyphen-insensitive completion. |
| 23 | +# Case-sensitive completion must be off. _ and - will be interchangeable. |
| 24 | +# HYPHEN_INSENSITIVE="true" |
| 25 | + |
| 26 | +# Uncomment the following line to disable bi-weekly auto-update checks. |
| 27 | +# DISABLE_AUTO_UPDATE="true" |
| 28 | + |
| 29 | +# Uncomment the following line to automatically update without prompting. |
| 30 | +# DISABLE_UPDATE_PROMPT="true" |
| 31 | + |
| 32 | +# Uncomment the following line to change how often to auto-update (in days). |
| 33 | +# export UPDATE_ZSH_DAYS=13 |
| 34 | + |
| 35 | +# Uncomment the following line if pasting URLs and other text is messed up. |
| 36 | +# DISABLE_MAGIC_FUNCTIONS=true |
| 37 | + |
| 38 | +# Uncomment the following line to disable colors in ls. |
| 39 | +# DISABLE_LS_COLORS="true" |
| 40 | + |
| 41 | +# Uncomment the following line to disable auto-setting terminal title. |
| 42 | +# DISABLE_AUTO_TITLE="true" |
| 43 | + |
| 44 | +# Uncomment the following line to enable command auto-correction. |
| 45 | +# ENABLE_CORRECTION="true" |
| 46 | + |
| 47 | +# Uncomment the following line to display red dots whilst waiting for completion. |
| 48 | +# COMPLETION_WAITING_DOTS="true" |
| 49 | + |
| 50 | +# Uncomment the following line if you want to disable marking untracked files |
| 51 | +# under VCS as dirty. This makes repository status check for large repositories |
| 52 | +# much, much faster. |
| 53 | +# DISABLE_UNTRACKED_FILES_DIRTY="true" |
| 54 | + |
| 55 | +# Uncomment the following line if you want to change the command execution time |
| 56 | +# stamp shown in the history command output. |
| 57 | +# You can set one of the optional three formats: |
| 58 | +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" |
| 59 | +# or set a custom format using the strftime function format specifications, |
| 60 | +# see 'man strftime' for details. |
| 61 | +# HIST_STAMPS="mm/dd/yyyy" |
| 62 | + |
| 63 | +HISTFILE=~/.zsh_history |
| 64 | + |
| 65 | +# Would you like to use another custom folder than $ZSH/custom? |
| 66 | +# ZSH_CUSTOM=/path/to/new-custom-folder |
| 67 | + |
| 68 | +# Which plugins would you like to load? |
| 69 | +# Standard plugins can be found in ~/.oh-my-zsh/plugins/* |
| 70 | +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ |
| 71 | +# Example format: plugins=(rails git textmate ruby lighthouse) |
| 72 | +# Add wisely, as too many plugins slow down shell startup. |
| 73 | +plugins=( |
| 74 | + git |
| 75 | + dotenv |
| 76 | + rake |
| 77 | + ruby |
| 78 | + ansible |
| 79 | + autoenv |
| 80 | + autopep8 |
| 81 | + docker |
| 82 | + docker-compose |
| 83 | + docker-machine |
| 84 | + django |
| 85 | + git-prompt |
| 86 | + gnu-utils |
| 87 | + man |
| 88 | + nmap |
| 89 | + npm |
| 90 | + pip |
| 91 | + pipenv |
| 92 | + pyenv |
| 93 | + pylint |
| 94 | + python |
| 95 | + rsync |
| 96 | + sudo |
| 97 | + systemd |
| 98 | + ubuntu |
| 99 | + virtualenv |
| 100 | + vscode |
| 101 | +) |
| 102 | + |
| 103 | +source $ZSH/oh-my-zsh.sh |
| 104 | + |
| 105 | +# User configuration |
| 106 | + |
| 107 | +# export MANPATH="/usr/local/man:$MANPATH" |
| 108 | + |
| 109 | +# You may need to manually set your language environment |
| 110 | +# export LANG=en_US.UTF-8 |
| 111 | + |
| 112 | +# Preferred editor for local and remote sessions |
| 113 | +# if [[ -n $SSH_CONNECTION ]]; then |
| 114 | +# export EDITOR='vim' |
| 115 | +# else |
| 116 | +# export EDITOR='mvim' |
| 117 | +# fi |
| 118 | + |
| 119 | +# Compilation flags |
| 120 | +# export ARCHFLAGS="-arch x86_64" |
| 121 | + |
| 122 | +# Set personal aliases, overriding those provided by oh-my-zsh libs, |
| 123 | +# plugins, and themes. Aliases can be placed here, though oh-my-zsh |
| 124 | +# users are encouraged to define aliases within the ZSH_CUSTOM folder. |
| 125 | +# For a full list of active aliases, run `alias`. |
| 126 | +# |
| 127 | +# Example aliases |
| 128 | +# alias zshconfig="mate ~/.zshrc" |
| 129 | +# alias ohmyzsh="mate ~/.oh-my-zsh" |
| 130 | +#source /usr/share/powerlevel9k/powerlevel9k.zsh-theme |
| 131 | +source /usr/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
| 132 | + |
| 133 | +# system aliases |
| 134 | +alias pef="ps -ef" |
| 135 | +alias paux="ps aux" |
| 136 | +alias free="free -m" |
| 137 | +alias cls="clear" |
| 138 | + |
| 139 | +# Shell History |
| 140 | +alias h='history' |
| 141 | + |
| 142 | +# ls aliases |
| 143 | +alias la="ls -lAtr --color=auto" |
| 144 | + |
| 145 | +# prog |
| 146 | +alias cdp="cd ~/Prog && ls -lAtr" |
| 147 | + |
| 148 | +# dir specific aliases |
| 149 | +alias cd..="cd .." |
| 150 | +alias ..="cd .." |
| 151 | +alias ...="cd ../.." |
| 152 | +alias ....="cd ../../.." |
| 153 | +alias .....="cd ../../../.." |
| 154 | + |
| 155 | +alias md="mkdir -p" |
| 156 | +alias rd="rmdir" |
| 157 | + |
| 158 | +# dnf aliases |
| 159 | +alias apt-upgrade="sudo apt update && sudo apt dist-upgrade && sudo cleanup-apt" |
| 160 | + |
| 161 | +alias gitp="git pull" |
| 162 | +alias gits="git status" |
| 163 | +alias gitd="git diff" |
| 164 | +alias gitcb="git checkout -b $1" |
| 165 | +alias gitc="git checkout $1" |
| 166 | + |
| 167 | +# Git finish |
| 168 | +# Eg. gf "commit message" branch-name |
| 169 | +gitf() { |
| 170 | + git add . && git commit -am "$1" && git push origin "$2" |
| 171 | +} |
| 172 | + |
| 173 | +export PATH="$HOME/bin:$PATH" |
0 commit comments