summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
-rw-r--r--zsh/aliases.zsh15
-rw-r--r--zsh/wsl.zsh24
-rw-r--r--zshrc7
3 files changed, 3 insertions, 43 deletions
diff --git a/zsh/aliases.zsh b/zsh/aliases.zsh
deleted file mode 100644
index fec40b4..0000000
--- a/zsh/aliases.zsh
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/env zsh
-
-source "${DOTFILES:-"${HOME}/dotfiles"}/shell/aliases.sh"
-
-# Command line head / tail shortcuts
-alias -g H='| head'
-alias -g T='| tail'
-alias -g G='| grep'
-alias -g L="| less"
-alias -g M="| most"
-alias -g LL="2>&1 | less"
-alias -g CA="2>&1 | cat -A"
-alias -g NE="2> /dev/null"
-alias -g NUL="> /dev/null 2>&1"
-alias -g P="2>&1| pygmentize -l pytb" \ No newline at end of file
diff --git a/zsh/wsl.zsh b/zsh/wsl.zsh
deleted file mode 100644
index 773abe0..0000000
--- a/zsh/wsl.zsh
+++ /dev/null
@@ -1,24 +0,0 @@
-#!/usr/bin/env zsh
-
-source "${DOTFILES:-"${HOME}/dotfiles"}/shell/wsl.sh"
-source "${DOTFILES:-"${HOME}/dotfiles"}/shell/gpg.sh"
-
-hash -d w=/mnt/c/Users/$USER
-
-function r-copy() {
- if ((REGION_ACTIVE)) then
- zle copy-region-as-kill
- (( ${+aliases[cb]} )) && printf "$CUTBUFFER" | cb
- else
- zle kill-whole-line
- fi
-}
-
-function r-cut() {
- if ((REGION_ACTIVE)) then
- zle kill-region
- else
- zle kill-whole-line
- fi
- (( ${+aliases[cb]} )) && printf "$CUTBUFFER" | cb
-}
diff --git a/zshrc b/zshrc
index 1049668..380e993 100644
--- a/zshrc
+++ b/zshrc
@@ -2,13 +2,12 @@
export DOTFILES="${HOME}/dotfiles"
-# Directory hashtable
-hash -d .=${HOME}/dotfiles
-[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/zsh/wsl.zsh
source $DOTFILES/shell/env.sh
source $DOTFILES/zsh/plugins.zsh
+[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/wsl.sh
+[ -n "${WSL_DISTRO_NAME+1}" ] && source $DOTFILES/shell/gpg.sh
+source $DOTFILES/shell/aliases.sh
source $DOTFILES/zsh/setopt.zsh
-source $DOTFILES/zsh/aliases.zsh
source $DOTFILES/zsh/completions.zsh
source $DOTFILES/zsh/keybindings.zsh