]> git.friedersdorff.com Git - max/dotfiles.git/commitdiff
Remove zsh and set up note taking
authorMaximilian Friedersdorff <maxf130@gmail.com>
Mon, 30 Nov 2015 10:02:29 +0000 (10:02 +0000)
committerMaximilian Friedersdorff <maxf130@gmail.com>
Mon, 30 Nov 2015 10:02:29 +0000 (10:02 +0000)
bash_profile [moved from zshenv with 66% similarity]
bashrc
zprofile [deleted file]
zshrc [deleted file]

similarity index 66%
rename from zshenv
rename to bash_profile
index 06a8fbd40a378df5b8770ba3af09d4d06e1cf541..499dc529e380cd89bf02f5c43419de9ffa085af9 100644 (file)
--- a/zshenv
@@ -2,10 +2,8 @@ export NPM_PACKAGES="$HOME/.npm-packages"
 export EDITOR="/usr/bin/vim"
 export PAGER="/usr/bin/less"
 export PATH="/home/max/bin:$NPM_PACKAGES/bin:${PATH}"
+export PATH="$PATH:/home/max/bin:$NPM_PACKAGES/bin:$HOME/.rvm/bin"
+[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"
 unset MANPATH
 MANPATH="$NPM_PACKAGES/share/man:$(manpath)"
 NODE_PATH="$NPM_PACKAGES/lib/node_modules:$NODE_PATH"
-
-alias emacs="emacs -nw"
-alias ls="ls --color=auto"
-alias la="ls -la"
diff --git a/bashrc b/bashrc
index a2a2cdd69465a18e6388464ce80c4e5fc868b209..f409183df063975506acec67f3e04f1d81acc6ad 100644 (file)
--- a/bashrc
+++ b/bashrc
@@ -111,3 +111,13 @@ if ! shopt -oq posix; then
     . /etc/bash_completion
   fi
 fi
+
+
+# Some simple note taking functions
+n() {
+  $EDITOR ~/notes/"$*".txt
+}
+
+nls() {
+  ls -c ~/notes/ | grep "$*"
+}
diff --git a/zprofile b/zprofile
deleted file mode 100644 (file)
index 9b46929..0000000
--- a/zprofile
+++ /dev/null
@@ -1 +0,0 @@
-export PATH="/home/max/bin:${PATH}"
diff --git a/zshrc b/zshrc
deleted file mode 100644 (file)
index 14b884f..0000000
--- a/zshrc
+++ /dev/null
@@ -1,43 +0,0 @@
-#!/bin/zsh
-
-# zsh config file
-
-# Completion
-autoload -U compinit
-compinit
-
-zstyle ':completion:*:descriptions' format '%U%B%d%b%u'
-zstyle ':completion:*:warnings' format '%BSorry, no matches for: %d%b'
-
-# Correction - zsh will correct mispelt commands
-setopt correctall
-
-# Prompt - Set prompt to gentoo
-autoload -U promptinit
-promptinit
-autoload -U colors && colors
-
-autoload -Uz vcs_info
-precmd () { vcs_info }
-setopt prompt_subst
-
-zstyle ':vcs_info:*' enable git
-zstyle ':vcs_info:*' formats "%s-[%b]"
-PROMPT="%F{green}%n@%m%k %B%F{blue}%3~ %# %b%f%k"
-RPROMPT="%B%F{blue} \${vcs_info_msg_0_} %(?..%F{red}<%?>)"
-
-# Command history
-export HISTSIZE=2000
-export HISTFILE="$HOME/.zsh_history"
-export SAVEHIST=$HISTSIZE
-bindkey "^[[A" history-search-backward
-bindkey "^[[B" history-search-forward
-
-setopt hist_ignore_all_dups
-setopt hist_ignore_space
-
-# Misc
-setopt autocd
-
-export PATH="$PATH:$HOME/.rvm/bin" # Add RVM to PATH for scripting
-[[ -s "$HOME/.rvm/scripts/rvm" ]] && source "$HOME/.rvm/scripts/rvm"