summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/powerline/themes/shell/default.json46
-rw-r--r--.tmux.conf2
-rw-r--r--.vimrc1
-rw-r--r--.zshenv2
-rw-r--r--.zshrc34
5 files changed, 21 insertions, 64 deletions
diff --git a/.config/powerline/themes/shell/default.json b/.config/powerline/themes/shell/default.json
deleted file mode 100644
index 9fceca6..0000000
--- a/.config/powerline/themes/shell/default.json
+++ /dev/null
@@ -1,46 +0,0 @@
-{
- "segments": {
- "left": [
- {
- "function": "powerline.segments.shell.last_pipe_status",
- "priority": 10
- },
- {
- "function": "powerline.segments.common.net.hostname",
- "priority": 10
- },
- {
- "function": "powerline.segments.common.env.user",
- "priority": 30
- },
- {
- "function": "powerline.segments.common.env.virtualenv",
- "priority": 50
- },
- {
- "function": "powerline.segments.shell.cwd",
- "priority": 10,
- "args": {
- "dir_limit_depth": 2
- }
- },
- {
- "function": "powerline.segments.common.vcs.branch",
- "priority": 40,
- "args": {
- "status_colors": true
- }
- },
- {
- "function": "powerline.segments.shell.jobnum",
- "priority": 20
- }
- ],
- "right": [
- {
- "function": "powerline.segments.common.vcs.stash",
- "priority": 50
- }
- ]
- }
-}
diff --git a/.tmux.conf b/.tmux.conf
index 19c14e7..5e82cbf 100644
--- a/.tmux.conf
+++ b/.tmux.conf
@@ -1,5 +1,3 @@
set -g default-terminal "tmux-256color"
set -g terminal-overrides ",xterm-termite:Tc"
set -g mouse on
-
-source /usr/lib/python3.8/site-packages/powerline/bindings/tmux/powerline.conf
diff --git a/.vimrc b/.vimrc
index 5afbba3..86f383d 100644
--- a/.vimrc
+++ b/.vimrc
@@ -9,7 +9,6 @@ set history=1000
set gcr=a:blinkon0
set grepprg="grep -nH $*"
let g:tex_flavor = "latex"
-let g:powerline_pycmd = "py3"
set laststatus=2
set visualbell
set background=dark
diff --git a/.zshenv b/.zshenv
index 2cbc002..1737049 100644
--- a/.zshenv
+++ b/.zshenv
@@ -13,7 +13,6 @@ appendpath '/home/dholman/bin'
appendpath '/home/dholman/.local/bin'
appendpath '/home/dholman/.gem/ruby/2.7.0/bin'
appendpath '/home/dholman/.rvm/bin'
-export PATH="/usr/lib/distcc/bin:$PATH"
export PATH
export DISTCC_HOSTS="192.168.1.26/24"
export EDITOR="vim"
@@ -29,5 +28,4 @@ source /usr/share/doc/pkgfile/command-not-found.zsh
source /usr/share/git/completion/git-prompt.sh
source /usr/share/zsh/plugins/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh
source /usr/share/zsh/plugins/zsh-history-substring-search/zsh-history-substring-search.zsh
-source /usr/lib/python3.8/site-packages/powerline/bindings/zsh/powerline.zsh
source ~/.rvm/scripts/rvm
diff --git a/.zshrc b/.zshrc
index 1824cfd..22faea7 100644
--- a/.zshrc
+++ b/.zshrc
@@ -26,9 +26,17 @@ zstyle ':completion:*:*:kill:*' menu yes select
zstyle ':completion:*:kill:*' force-list always
zstyle ':completion:*' squeeze-slashes true
-# Vim-style history searching
-bindkey -M vicmd 'k' history-substring-search-up
-bindkey -M vicmd 'j' history-substring-search-down
+# History options
+setopt hist_ignore_dups
+setopt hist_ignore_space
+
+# History search
+autoload -U up-line-or-beginning-search
+autoload -U down-line-or-beginning-search
+zle -N up-line-or-beginning-search
+zle -N down-line-or-beginning-search
+bindkey "^[[A" up-line-or-beginning-search
+bindkey "^[[B" down-line-or-beginning-search
# Aliases
alias ls="ls --color=auto"
@@ -37,17 +45,17 @@ alias pacr="sudo pacman -Rns"
alias pacup="sudo pacman -Syu;auracle sync"
alias msfconsole="sudo msfconsole -q"
-# Powerline
-if [ $(pgrep -c powerline) -eq 0 ]; then
- powerline-daemon -q
-fi
-
# Prompt settings
-#setopt PROMPT_SUBST
-#GIT_PS1_SHOWUPSTREAM=auto
-#GIT_PS1_SHOWDIRTYSTATE=1
-#GIT_PS1_SHOWUNTRACKEDFILES=1
-#PS1='$(__git_ps1 "(%s)")$ '
+setopt prompt_subst
+GIT_PS1_SHOWUPSTREAM=auto
+GIT_PS1_SHOWDIRTYSTATE=1
+GIT_PS1_SHOWUNTRACKEDFILES=1
+GIT_PS1_SHOWCOLORHINTS=1
+if [[ -z "$SSH_CLIENT" ]]; then
+ PROMPT='%(?..%? )%3~ $(__git_ps1 "(%s)")%(!.#.$) '
+else
+ PROMPT='%(?..%? )%m %3~ $(__git_ps1 "(%s)")%(!.#.$) '
+fi
# Make shell stuff behave nicely
pacsearch() {