aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--_profile10
-rw-r--r--_zsh/aliases.zsh2
-rw-r--r--_zsh/bindkeys.zsh5
-rw-r--r--_zsh/history.zsh4
-rw-r--r--_zsh/hooks.zsh32
-rw-r--r--_zsh/setopt.zsh7
-rw-r--r--_zshrc2
7 files changed, 42 insertions, 20 deletions
diff --git a/_profile b/_profile
index 430e7dd..6ff3dcc 100644
--- a/_profile
+++ b/_profile
@@ -35,11 +35,11 @@ export LC_COLLATE="C"
### Input method: fcitx
export XMODIFIERS="@im=fcitx"
-export INPUT_METHOD="fcitx"
-export GTK_IM_MODULE="fcitx"
-export GTK3_IM_MODULE="fcitx"
-export QT_IM_MODULE="fcitx"
-export QT4_IM_MODULE="fcitx"
+#export INPUT_METHOD="fcitx"
+#export GTK_IM_MODULE="fcitx"
+#export GTK3_IM_MODULE="fcitx"
+#export QT_IM_MODULE="fcitx"
+#export QT4_IM_MODULE="fcitx"
### LS colors
diff --git a/_zsh/aliases.zsh b/_zsh/aliases.zsh
index 7b1b26f..ccf8f17 100644
--- a/_zsh/aliases.zsh
+++ b/_zsh/aliases.zsh
@@ -2,6 +2,8 @@
# zsh/aliases.zsh
#
+alias zhelp='run-help'
+
alias ..='cd ../'
alias ...='cd ../../'
alias ....='cd ../../../'
diff --git a/_zsh/bindkeys.zsh b/_zsh/bindkeys.zsh
index 07ca090..c53d3bf 100644
--- a/_zsh/bindkeys.zsh
+++ b/_zsh/bindkeys.zsh
@@ -16,4 +16,9 @@ bindkey "^D" delete-char # ctrl-d
bindkey "^F" forward-char # ctrl-f
bindkey "^B" backward-char # ctrl-b
+# see zshcontrib(1)
+autoload -U select-word-style
+# bash-style word killing: word characters are alphanumeric characters only
+select-word-style bash
+
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #
diff --git a/_zsh/history.zsh b/_zsh/history.zsh
index bfa6317..e1275a6 100644
--- a/_zsh/history.zsh
+++ b/_zsh/history.zsh
@@ -4,8 +4,8 @@
HISTFILE=~/.zsh_history
-HISTSIZE=2000
-SAVEHIST=1800
+HISTSIZE=10000
+SAVEHIST=9000
# ignore these commands without arguments
HISTIGNORE="cd:ls:ll"
diff --git a/_zsh/hooks.zsh b/_zsh/hooks.zsh
index 9e18053..defee0b 100644
--- a/_zsh/hooks.zsh
+++ b/_zsh/hooks.zsh
@@ -2,27 +2,33 @@
# zsh/hooks.zsh
#
-function precmd {
- # vcs_info
- # Put the string "hostname::/full/directory/path" in the title bar:
+# Put the string "hostname::/full/directory/path" in the title bar:
+function set_term_title {
echo -ne "\e]2;$PWD\a"
+}
- # Put the parentdir/currentdir in the tab
+# Put the parentdir/currentdir in the tab
+function set_term_tab {
echo -ne "\e]1;$PWD:h:t/$PWD:t\a"
}
-
-function set_running_app {
- printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"
+function precmd {
+ set_term_title
+ set_term_tab
}
-function preexec {
- set_running_app
-}
-function postexec {
- set_running_app
-}
+#function set_running_app {
+# printf "\e]1; $PWD:t:$(history $HISTCMD | cut -b7- ) \a"
+#}
+#
+#function preexec {
+# set_running_app
+#}
+#
+#function postexec {
+# set_running_app
+#}
# vim: set ts=8 sw=4 tw=0 fenc=utf-8 ft=zsh: #
diff --git a/_zsh/setopt.zsh b/_zsh/setopt.zsh
index 79a1832..fb8b5e8 100644
--- a/_zsh/setopt.zsh
+++ b/_zsh/setopt.zsh
@@ -1,16 +1,21 @@
#
# zsh/setopt.zsh
+# see man zshoptions(1)
#
## Basics
setopt NO_BEEP
setopt AUTO_CD
+# make cd push the old directory onto the directory stack
+setopt AUTO_PUSHD
# don't push multiple copies of the same directory into the directory stack
setopt PUSHD_IGNORE_DUPS
# treat #, ~, and ^ as part of patterns for filename generation
setopt EXTENDED_GLOB
# allow comments even in interactive shells (especially for Muness)
setopt INTERACTIVE_COMMENTS
+# display PID when suspending processes as well
+setopt LONG_LIST_JOBS
## History
# allow multiple terminal sessions to all append to one zsh command history
@@ -32,6 +37,8 @@ setopt HIST_VERIFY
## Completion
+# * shouldn't match dotfiles. ever.
+setopt NO_GLOB_DOTS
# allow completion from within a word/phrase
setopt COMPLETE_IN_WORD
# when completing from middle of a word, move cursor to the end of the word
diff --git a/_zshrc b/_zshrc
index b647900..696591d 100644
--- a/_zshrc
+++ b/_zshrc
@@ -10,6 +10,8 @@
## [1] https://github.com/spicycode/ze-best-zsh-config
## [2] Zsh Configuration from the Ground Up
## http://zanshin.net/2013/02/02/zsh-configuration-from-the-ground-up/
+## [3] GRML Zsh
+## http://grml.org/zsh/
##
## References:
## [1] The Unix Shell's Humble if