Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

removed redundancies & consolodated library

  • Loading branch information...
commit f6dd5d280e658fa9ecfa0c8b453c4effc54ee23f 1 parent cf08d5b
@Soares authored
View
16 lib/aliases.zsh
@@ -6,7 +6,8 @@ alias history='fc -l 1'
export IGNORED_FILES='*.pyc'
alias ls="ls --color --hide='$IGNORED_FILES'"
alias ll="ls -l --color --hide='$IGNORED_FILES'"
-alias lb="ls --hide='$IGNORED_FILES'"
+alias md="mkdir -p"
+alias mkdir="mkdir -p"
alias sim="sudoedit"
alias o="gnome-open"
@@ -31,7 +32,12 @@ alias music="ncmpcpp"
alias pdf="evince"
alias song="cvlc 2>/dev/null&"
-local tmux="tmux -f $XDG_CONFIG_HOME/tmux/config"
-local vim="vim -u $XDG_CONFIG_HOME/vim/vim.rc"
-alias tmux=$tmux
-alias vim=$vim
+alias splitflac="cuebreakpoints *.cue | shnsplit -o flac *.flac
+ && cuetag *.cue split-track*.flac"
+
+# Guys who shouldn't be autocorrected
+alias man='nocorrect man'
+alias mv='nocorrect mv'
+alias mysql='nocorrect mysql'
+alias mkdir='nocorrect mkdir'
+alias gist='nocorrect gist'
View
18 lib/config.zsh
@@ -1,6 +1,11 @@
-setopt DVORAK autocd beep extendedglob nomatch interactivecomments long_list_jobs
+setopt dvorak autocd beep extendedglob nomatch interactivecomments
+setopt prompt_subst long_list_jobs multios cdablevars
stty -ixon
+# prompt coloring
+autoload colors
+colors
+
# smart urls
autoload -U url-quote-magic
zle -N self-insert url-quote-magic
@@ -17,3 +22,14 @@ export GREP_OPTIONS='--color=auto'
export LC_CTYPE=$LANG
export LESSHISTFILE=$XDG_DATA_HOME/less/history
export PAGER=less
+
+# History Configuration
+HISTFILE=$XDG_DATA_HOME/zsh/history
+HISTSIZE=10000
+SAVEHIST=10000
+
+setopt append_history extended_history hist_expire_dups_first
+setopt hist_ignore_dups hist_ignore_space hist_verify inc_append_history
+setopt inc_append_history
+# Mildly controversial:
+setopt share_history
View
13 lib/history.zsh
@@ -1,13 +0,0 @@
-## Command history configuration
-HISTFILE=$XDG_DATA_HOME/zsh/history
-HISTSIZE=10000
-SAVEHIST=10000
-
-setopt append_history
-setopt extended_history
-setopt hist_expire_dups_first
-setopt hist_ignore_dups # ignore duplication command history list
-setopt hist_ignore_space
-setopt hist_verify
-setopt inc_append_history
-setopt share_history # share command history data
View
13 lib/misc.zsh
@@ -1,13 +0,0 @@
-## smart urls
-autoload -U url-quote-magic
-zle -N self-insert url-quote-magic
-
-## file rename magick
-bindkey "^[m" copy-prev-shell-word
-
-## jobs
-setopt long_list_jobs
-
-## pager
-export PAGER=less
-export LC_CTYPE=$LANG
View
5 lib/nocorrect.zsh
@@ -1,5 +0,0 @@
-alias man='nocorrect man'
-alias mv='nocorrect mv'
-alias mysql='nocorrect mysql'
-alias mkdir='nocorrect mkdir'
-alias gist='nocorrect gist'
View
36 lib/theme-and-appearance.zsh
@@ -1,36 +0,0 @@
-# ls colors
-autoload colors; colors;
-export LSCOLORS="Gxfxcxdxbxegedabagacad"
-#export LS_COLORS
-
-# Enable ls colors
-if [ "$DISABLE_LS_COLORS" != "true" ]
-then
- # Find the option for using colors in ls, depending on the version: Linux or BSD
- ls --color -d . &>/dev/null 2>&1 && alias ls='ls --color=tty' || alias ls='ls -G'
-fi
-
-#setopt no_beep
-setopt auto_cd
-setopt multios
-setopt cdablevarS
-
-if [[ x$WINDOW != x ]]
-then
- SCREEN_NO="%B$WINDOW%b "
-else
- SCREEN_NO=""
-fi
-
-# Apply theming defaults
-PS1="%n@%m:%~%# "
-
-# git theming default: Variables for theming the git info prompt
-ZSH_THEME_GIT_PROMPT_PREFIX="git:(" # Prefix at the very beginning of the prompt, before the branch name
-ZSH_THEME_GIT_PROMPT_SUFFIX=")" # At the very end of the prompt
-ZSH_THEME_GIT_PROMPT_DIRTY="*" # Text to display if the branch is dirty
-ZSH_THEME_GIT_PROMPT_CLEAN="" # Text to display if the branch is clean
-
-# Setup the prompt with pretty colors
-setopt prompt_subst
-
Please sign in to comment.
Something went wrong with that request. Please try again.