|
@@ -1,49 +1,42 @@
|
|
-# Lines configured by zsh-newuser-install
|
|
|
|
|
|
+# local zsh config
|
|
|
|
+source ~/.zshrc.local
|
|
|
|
+
|
|
|
|
+# History
|
|
HISTFILE=~/.histfile
|
|
HISTFILE=~/.histfile
|
|
-HISTSIZE=1000
|
|
|
|
-SAVEHIST=1000
|
|
|
|
|
|
+HISTSIZE=10000
|
|
|
|
+SAVEHIST=10000
|
|
|
|
+
|
|
|
|
+# Instantly write history
|
|
|
|
+setopt -o sharehistory
|
|
|
|
+
|
|
|
|
+# Ignore duplicates in history
|
|
|
|
+setopt HIST_IGNORE_DUPS
|
|
|
|
+
|
|
|
|
+# Delete old recorded entry if new entry is a duplicate.
|
|
|
|
+setopt HIST_IGNORE_ALL_DUPS
|
|
|
|
+
|
|
setopt appendhistory autocd extendedglob nomatch
|
|
setopt appendhistory autocd extendedglob nomatch
|
|
|
|
+
|
|
bindkey -e
|
|
bindkey -e
|
|
-# End of lines configured by zsh-newuser-install
|
|
|
|
-# The following lines were added by compinstall
|
|
|
|
|
|
+
|
|
zstyle :compinstall filename '/home/josh/.zshrc'
|
|
zstyle :compinstall filename '/home/josh/.zshrc'
|
|
|
|
|
|
autoload -Uz compinit
|
|
autoload -Uz compinit
|
|
compinit
|
|
compinit
|
|
-# End of lines added by compinstall
|
|
|
|
|
|
|
|
# List of word delimeters
|
|
# List of word delimeters
|
|
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
|
WORDCHARS='*?_-.[]~=&;!#$%^(){}<>'
|
|
|
|
|
|
-# Use prompt colors (green for regular user, red for root)
|
|
|
|
-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
|
|
|
|
-
|
|
|
|
# ls pleasantness
|
|
# ls pleasantness
|
|
alias l='\ls --color=auto'
|
|
alias l='\ls --color=auto'
|
|
alias ls='ls --color=auto'
|
|
alias ls='ls --color=auto'
|
|
alias lsa='ls -a --color=auto'
|
|
alias lsa='ls -a --color=auto'
|
|
-alias lls='ls -alh --color=auto'
|
|
|
|
-
|
|
|
|
-# apt-get aliases
|
|
|
|
-alias update='sudo apt-get update && sudo apt-get dist-upgrade'
|
|
|
|
-alias clean='sudo apt-get clean'
|
|
|
|
-
|
|
|
|
-# grep the entirety of the history
|
|
|
|
-alias hg='history 1 | grep'
|
|
|
|
|
|
+alias lls='ls -lh --color=auto'
|
|
|
|
+alias ll='ls -lh --color=auto'
|
|
|
|
|
|
# Use vim as the default text editor
|
|
# Use vim as the default text editor
|
|
export VISUAL=vim
|
|
export VISUAL=vim
|
|
|
|
|
|
-# Used to keep steam from throwing errors
|
|
|
|
-export SWT_GTK3=0
|
|
|
|
-
|
|
|
|
# Home and End keysjump the the beginning/end of the command
|
|
# Home and End keysjump the the beginning/end of the command
|
|
bindkey "^[OH" beginning-of-line
|
|
bindkey "^[OH" beginning-of-line
|
|
bindkey "^[OF" end-of-line
|
|
bindkey "^[OF" end-of-line
|
|
@@ -54,21 +47,6 @@ bindkey ";5C" forward-word
|
|
bindkey ";5D" backward-word
|
|
bindkey ";5D" backward-word
|
|
# bindkey "^[[D" backward-word
|
|
# bindkey "^[[D" backward-word
|
|
|
|
|
|
-# Used for X forwarding in Cygwin
|
|
|
|
-if [[ "$(uname -o)" != "GNU/Linux" ]]; then
|
|
|
|
- DISPLAY=:1.0
|
|
|
|
-fi
|
|
|
|
-
|
|
|
|
-# local folder in PATH for UE4
|
|
|
|
-export PATH=$HOME/bin:$PATH
|
|
|
|
-
|
|
|
|
-# Flags used for CS243 "Mechanics of Programming"
|
|
|
|
-alias gcc='gcc -std=c99 -Wall -ggdb -Wextra -pedantic'
|
|
|
|
-
|
|
|
|
-# devkitPro/devkitPPC sources
|
|
|
|
-export DEVKITPRO=/home/josh/devkitPro/
|
|
|
|
-export DEVKITPPC=/home/josh/devkitPro//devkitPPC
|
|
|
|
-
|
|
|
|
# alias for vim muscle memory when quitting
|
|
# alias for vim muscle memory when quitting
|
|
alias :q='exit'
|
|
alias :q='exit'
|
|
|
|
|
|
@@ -77,14 +55,8 @@ if hash fuck 2>/dev/null; then
|
|
eval $(thefuck --alias)
|
|
eval $(thefuck --alias)
|
|
fi
|
|
fi
|
|
|
|
|
|
-# Instantly write history
|
|
|
|
-setopt -o sharehistory
|
|
|
|
-
|
|
|
|
-# Ignore duplicates in history
|
|
|
|
-setopt HIST_IGNORE_DUPS
|
|
|
|
-
|
|
|
|
# timestamp alias for dates
|
|
# timestamp alias for dates
|
|
alias ts='date +%y-%m-%d'
|
|
alias ts='date +%y-%m-%d'
|
|
|
|
|
|
-# zsh-syntax-highlighting (MUST BE AT THE BOTTOM OF THIS FILE)
|
|
|
|
-source ~/.zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
|
|
|
|
|
|
+# default to terminal emacs
|
|
|
|
+alias emacs='emacs -nw'
|