123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- HISTFILE=~/.histfile
- HISTSIZE=1000
- SAVEHIST=1000
- setopt appendhistory autocd extendedglob nomatch
- bindkey -e
- zstyle :compinstall filename '/home/josh/.zshrc'
- autoload -Uz compinit
- compinit
- autoload -U colors && colors
- if [ "$(id -u)" != "0" ]; then
- PROMPT="%{$fg_bold[green]%}%n@%m %1~ $%{$reset_color%} "
- RPROMPT="[%{$fg_no_bold[yellow]%}%?%{$reset_color%}]"
- else
- PROMPT="%{$fg_bold[red]%}%n@%m %1~ #%{$reset_color%} "
- RPROMPT="[%{$fg_no_bold[yellow]%}%?%{$reset_color%}]"
- fi
- alias l='\ls --color=auto'
- alias ls='ls --color=auto'
- alias lsa='ls -a --color=auto'
- alias lls='ls -alh --color=auto'
- alias update='sudo apt-get update && sudo apt-get dist-upgrade'
- alias clean='sudo apt-get clean'
- alias hg='history 1 | grep'
- export VISUAL=vim
- export SWT_GTK3=0
- bindkey "^[OH" beginning-of-line
- bindkey "^[OF" end-of-line
- bindkey ";5C" forward-word
- bindkey "^[[C" forward-word
- bindkey ";5D" backward-word
- bindkey "^[[D" backward-word
- bindkey '^[[A' history-substring-search-up
- bindkey '^[[B' history-substring-search-down
- if [[ "$(uname -o)" != "GNU/Linux" ]]; then
- DISPLAY=:1.0
- fi
- export PATH=$HOME/bin:$PATH
- alias gcc='gcc -std=c99 -Wall -ggdb -Wextra -pedantic'
- h2d(){
- echo "ibase=16; $@"|bc
- }
- d2h(){
- echo "obase=16; $@"|bc
- }
- export DEVKITPRO=/home/josh/devkitPro/
- export DEVKITPPC=/home/josh/devkitPro//devkitPPC
- alias :q='exit'
- if hash fuck 2>/dev/null; then
- eval $(thefuck --alias)
- fi
- alias playdata='aplay -c 2 -f S16_LE -r 44100'
- source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
- source ~/.zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
|