Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # 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/archie/.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/robbyrussell/oh-my-zsh/wiki/Themes
- 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 change how often to auto-update (in days).
- # export UPDATE_ZSH_DAYS=13
- # 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 command-time)
- 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
- # Compilation flags
- # export ARCHFLAGS="-arch x86_64"
- # ssh
- # export SSH_KEY_PATH="~/.ssh/rsa_id"
- # 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
- clear
- cowsay "Чайная диета"
- alias sdl="cd $1 && ls"
- alias pacman="sudo pacman"
- alias update="sudo pacman -Syy"
- alias upgrade="sudo pacman -Syyu"
- alias aur="pacaur"
- alias start="sudo systemctl start"
- alias enable="sudo systemctl enable"
- alias disable="sudo systemctl disable"
- alias make="make -j2"
- alias make-install="sudo make install"
- alias update-grub="sudo grub-mkconfig -o /boot/grub/grub.cfg"
- alias logs="sudo grep -i failed /var/log/* && sudo grep -i error /var/log/*"
- alias e="exit"
- alias l="ls"
- alias c="clear"
- alias la="ls -a"
- alias cp="cp -v"
- alias modprobe="sudo modprobe -v"
- alias mkinitcpio="sudo mkinitcpio -p"
- alias mem="watch free -h"
- alias temp="watch sensors"
- alias rim="sudo rim"
- alias powerpill="sudo powerpill"
- #colour
- if [ -f /usr/bin/grc ]; then
- alias gcc="grc --colour=auto gcc"
- alias irclog="grc --colour=auto irclog"
- alias log="grc --colour=auto log"
- alias netstat="grc --colour=auto netstat"
- alias ping="grc --colour=auto ping"
- alias proftpd="grc --colour=auto proftpd"
- alias traceroute="grc --colour=auto traceroute"
- alias lias grep="grep --color=auto"
- alias ls='ls --color=auto'
- alias я_обновлю_все_к_чертям="pacman -Su"
- fi
- unsetopt beep
- source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- source /usr/share/zsh/plugins/zsh-autosuggestions/zsh-autosuggestions.zsh
- ex () {
- if [ -f $1 ] ; then
- case $1 in
- *.tar.bz2) tar xvjf $1 ;;
- *.tar.gz) tar xvzf $1 ;;
- *.tar.xz) tar xvfJ $1 ;;
- *.bz2) bunzip2 $1 ;;
- *.rar) unrar x $1 ;;
- *.gz) gunzip $1 ;;
- *.tar) tar xvf $1 ;;
- *.tbz2) tar xvjf $1 ;;
- *.tgz) tar xvzf $1 ;;
- *.zip) unzip $1 ;;
- *.Z) uncompress $1 ;;
- *.7z) 7z x $1 ;;
- *) echo "'$1' ну вот не могу распаковать ваш ёбанный архив" ;;
- esac
- else
- echo "'$1' не буду распаковывать этот хуевый архив"
- fi
- }
- autoload -Uz compinit
- compinit
- setopt CORRECT_ALL
- SPROMPT="Опять с командой накосячил, ты хотел %r вместо %R? ([Y]/[N]/[E]) "
- setopt COMPLETE_ALIASES
- zstyle ':completion::complete:*' gain-privileges 1
- zsh_command_time() {
- if [ -n "$ZSH_COMMAND_TIME" ]; then
- hours=$(($ZSH_COMMAND_TIME/3600))
- min=$(($ZSH_COMMAND_TIME/60))
- sec=$(($ZSH_COMMAND_TIME%60))
- if [ "$ZSH_COMMAND_TIME" -le 60 ]; then
- timer_show="$fg[green]$ZSH_COMMAND_TIME s."
- elif [ "$ZSH_COMMAND_TIME" -gt 60 ] && [ "$ZSH_COMMAND_TIME" -le 180 ]; then
- timer_show="$fg[yellow]$min min. $sec s."
- else
- if [ "$hours" -gt 0 ]; then
- min=$(($min%60))
- timer_show="$fg[red]$hours h. $min min. $sec s."
- else
- timer_show="$fg[red]$min min. $sec s."
- fi
- fi
- printf "${ZSH_COMMAND_TIME_MSG}\n" "$timer_show"
- fi
- }
- export PATH
- #export PAGER='vimpager'
- #alias less=$PAGER
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement