|
| 1 | +POWERLEVEL9K_MODE="nerdfont-complete" |
| 2 | +# arch linux icon |
| 3 | + |
| 4 | +export TERM="xterm-256color" |
| 5 | + |
| 6 | +export LANG="en_US.UTF-8" |
| 7 | + |
| 8 | +#source ~/.local/share/fonts |
| 9 | + |
| 10 | +# If you come from bash you might have to change your $PATH. |
| 11 | +# export PATH=$HOME/bin:/usr/local/bin:$PATH |
| 12 | + |
| 13 | +# Path to your oh-my-zsh installation. |
| 14 | + export ZSH="/home/ossi/.oh-my-zsh" |
| 15 | + |
| 16 | +# Set name of the theme to load --- if set to "random", it will |
| 17 | +# load a random theme each time oh-my-zsh is loaded, in which case, |
| 18 | +# to know which specific one was loaded, run: echo $RANDOM_THEME |
| 19 | +# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
| 20 | +ZSH_THEME="powerlevel9k/powerlevel9k" |
| 21 | + |
| 22 | + |
| 23 | +# Set list of themes to pick from when loading at random |
| 24 | +# Setting this variable when ZSH_THEME=random will cause zsh to load |
| 25 | +# a theme from this variable instead of looking in ~/.oh-my-zsh/themes/ |
| 26 | +# If set to an empty array, this variable will have no effect. |
| 27 | +# ZSH_THEME_RANDOM_CANDIDATES=( "robbyrussell" "agnoster" ) |
| 28 | + |
| 29 | +# Uncomment the following line to use case-sensitive completion. |
| 30 | +# CASE_SENSITIVE="true" |
| 31 | + |
| 32 | +# Uncomment the following line to use hyphen-insensitive completion. |
| 33 | +# Case-sensitive completion must be off. _ and - will be interchangeable. |
| 34 | +# HYPHEN_INSENSITIVE="true" |
| 35 | + |
| 36 | +# Uncomment the following line to disable bi-weekly auto-update checks. |
| 37 | +# DISABLE_AUTO_UPDATE="true" |
| 38 | + |
| 39 | +# Uncomment the following line to change how often to auto-update (in days). |
| 40 | +# export UPDATE_ZSH_DAYS=13 |
| 41 | + |
| 42 | +# Uncomment the following line to disable colors in ls. |
| 43 | +# DISABLE_LS_COLORS="true" |
| 44 | + |
| 45 | +# Uncomment the following line to disable auto-setting terminal title. |
| 46 | +# DISABLE_AUTO_TITLE="true" |
| 47 | + |
| 48 | +# Uncomment the following line to enable command auto-correction. |
| 49 | +# ENABLE_CORRECTION="true" |
| 50 | + |
| 51 | +# Uncomment the following line to display red dots whilst waiting for completion. |
| 52 | +# COMPLETION_WAITING_DOTS="true" |
| 53 | + |
| 54 | +# Uncomment the following line if you want to disable marking untracked files |
| 55 | +# under VCS as dirty. This makes repository status check for large repositories |
| 56 | +# much, much faster. |
| 57 | +# DISABLE_UNTRACKED_FILES_DIRTY="true" |
| 58 | + |
| 59 | +# Uncomment the following line if you want to change the command execution time |
| 60 | +# stamp shown in the history command output. |
| 61 | +# You can set one of the optional three formats: |
| 62 | +# "mm/dd/yyyy"|"dd.mm.yyyy"|"yyyy-mm-dd" |
| 63 | +# or set a custom format using the strftime function format specifications, |
| 64 | +# see 'man strftime' for details. |
| 65 | +# HIST_STAMPS="mm/dd/yyyy" |
| 66 | + |
| 67 | +# Would you like to use another custom folder than $ZSH/custom? |
| 68 | +# ZSH_CUSTOM=/path/to/new-custom-folder |
| 69 | + |
| 70 | +# Which plugins would you like to load? |
| 71 | +# Standard plugins can be found in ~/.oh-my-zsh/plugins/* |
| 72 | +# Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ |
| 73 | +# Example format: plugins=(rails git textmate ruby lighthouse) |
| 74 | +# Add wisely, as too many plugins slow down shell startup. |
| 75 | + |
| 76 | +POWERLEVEL9K_LEFT_SEGMENT_SEPARATOR=$'\uE0C0' |
| 77 | +POWERLEVEL9K_RIGHT_SEGMENT_SEPARATOR=$'\uE0C2' |
| 78 | +POWERLEVEL9K_STATUS_VERBOSE=true |
| 79 | +POWERLEVEL9K_LEFT_PROMPT_ELEMENTS=(custom_arch context dir vcs root_indicator) |
| 80 | +POWERLEVEL9K_RIGHT_PROMPT_ELEMENTS=(status time background_jobs load virtualenv) |
| 81 | +POWERLEVEL9K_SHORTEN_DIR_LENGTH=2 |
| 82 | +POWERLEVEL9K_OS_ICON_BACKGROUND="blue" |
| 83 | +POWERLEVEL9K_OS_ICON_FOREGROUND="black" |
| 84 | +POWERLEVEL9K_DIR_HOME_BACKGROUND="black" |
| 85 | +POWERLEVEL9K_DIR_HOME_FOREGROUND="white" |
| 86 | +POWERLEVEL9K_DIR_HOME_SUBFOLDER_BACKGROUND="blue" |
| 87 | +POWERLEVEL9K_DIR_HOME_SUBFOLDER_FOREGROUND="black" |
| 88 | +POWERLEVEL9K_DIR_DEFAULT_BACKGROUND="green" |
| 89 | +POWERLEVEL9K_DIR_DEFAULT_FOREGROUND="black" |
| 90 | +POWERLEVEL9K_PROMPT_ADD_NEWLINE=true |
| 91 | +POWERLEVEL9K_PROMPT_ON_NEWLINE=true |
| 92 | +# Create a custom JavaScript prompt section |
| 93 | +POWERLEVEL9K_CUSTOM_ARCH="echo -n '\uf300'" |
| 94 | +POWERLEVEL9K_CUSTOM_ARCH_FOREGROUND="blue" |
| 95 | +POWERLEVEL9K_CUSTOM_ARCH_BACKGROUND="white" |
| 96 | + |
| 97 | +plugins=( |
| 98 | + git |
| 99 | + zsh-syntax-highlighting |
| 100 | + zsh-autosuggestions |
| 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 | +# ssh |
| 123 | +# export SSH_KEY_PATH="~/.ssh/rsa_id" |
| 124 | + |
| 125 | +# Set personal aliases, overriding those provided by oh-my-zsh libs, |
| 126 | +# plugins, and themes. Aliases can be placed here, though oh-my-zsh |
| 127 | +# users are encouraged to define aliases within the ZSH_CUSTOM folder. |
| 128 | +# For a full list of active aliases, run `alias`. |
| 129 | +# |
| 130 | +# Example aliases |
| 131 | +# alias zshconfig="mate ~/.zshrc" |
| 132 | +# alias ohmyzsh="mate ~/.oh-my-zsh" |
| 133 | +#source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh |
| 134 | +alias smartdns-ap="sudo iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 54.229.171.243 && sudo iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 23.21.43.50 && sudo create_ap --ieee80211n --ht_capab '[HT40-]' --freq-band 5 --country DE -c 40 --dhcp-dns 23.21.43.50,54.229.171.243 wlan1 eth0 rpi3on 12ere345" |
| 135 | +alias smartdns-ap0="sudo iptables -t nat -A PREROUTING -d 8.8.4.4 -j DNAT --to-destination 54.229.171.243 && sudo iptables -t nat -A PREROUTING -d 8.8.8.8 -j DNAT --to-destination 23.21.43.50 && sudo create_ap --ieee80211n --country DE --dhcp-dns 23.21.43.50,54.229.171.243 wlan0 eth0 rpi3on 12ere345" |
| 136 | +alias ap="sudo create_ap --ieee80211n --ht_capab '[HT40-]' --freq-band 5 --country DE -c 40 wlan1 eth0 rpi3on 12ere345" |
| 137 | +alias ap0="sudo create_ap --ieee80211n --ht_capab '[HT40-]' --freq-band 5 --country DE -c 40 wlan0 eth0 rpi3on 12ere345" |
| 138 | +alias ap24="sudo create_ap --country DE wlan1 eth0 rpi3on 12ere345" |
0 commit comments