-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
35 changed files
with
637 additions
and
548 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
#!/bin/bash | ||
|
||
[[ -f ~/.profile ]] && . ~/.profile | ||
[[ -f "$HOME/.profile" ]] && . "$HOME/.profile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
[global] | ||
server string = %h | ||
use sendfile = yes | ||
min receivefile size = 16384 | ||
|
||
[homes] | ||
writable = yes | ||
|
||
[printers] | ||
guest ok = yes | ||
printable = yes | ||
|
||
[media] | ||
path = /media | ||
writable = yes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
[ -f $HOME/.profile ] && source $HOME/.profile | ||
#!/usr/bin/env zsh | ||
|
||
[[ -f "$HOME/.profile" ]] && source "$HOME/.profile" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# vi mode | ||
bindkey -v | ||
export KEYTIMEOUT=1 | ||
|
||
# Use vim keys in tab complete menu: | ||
bindkey -M menuselect 'h' vi-backward-char | ||
bindkey -M menuselect 'k' vi-up-line-or-history | ||
bindkey -M menuselect 'l' vi-forward-char | ||
bindkey -M menuselect 'j' vi-down-line-or-history | ||
bindkey -v '^?' backward-delete-char | ||
|
||
# Use lf to switch directories | ||
bindkey -s '^o' 'lfcd\n' | ||
|
||
# Edit line in vim | ||
bindkey '^e' edit-command-line | ||
|
||
# fzf - Paste the selected file path(s) into the command line | ||
bindkey -M emacs '^T' fzf-file-widget | ||
bindkey -M vicmd '^T' fzf-file-widget | ||
bindkey -M viins '^T' fzf-file-widget | ||
|
||
# fzf - cd into the selected directory | ||
bindkey -M emacs '\ec' fzf-cd-widget | ||
bindkey -M vicmd '\ec' fzf-cd-widget | ||
bindkey -M viins '\ec' fzf-cd-widget | ||
|
||
# fzf - Paste the selected command from history into the command line | ||
bindkey -M emacs '^R' fzf-history-widget | ||
bindkey -M vicmd '^R' fzf-history-widget | ||
bindkey -M viins '^R' fzf-history-widget | ||
|
||
# zsh-history-substring-search | ||
bindkey '^[[A' history-substring-search-up | ||
bindkey '^[[B' history-substring-search-down | ||
bindkey -M vicmd 'k' history-substring-search-up | ||
bindkey -M vicmd 'j' history-substring-search-down | ||
|
||
# zsh-autosuggestions | ||
bindkey '^ ' autosuggest-accept | ||
bindkey '^@' autosuggest-accept |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,24 @@ | ||
# plugins directory | ||
ZPLUGINDIR=$HOME/.local/share/zsh/plugins | ||
[ -d $ZPLUGINDIR ] || mkdir -p $ZPLUGINDIR | ||
ZPLUGINDIR="${XDG_DATA_HOME:-$HOME/.local/share}/zsh/plugins" | ||
[[ -d "$ZPLUGINDIR" ]] || mkdir -p "$ZPLUGINDIR" | ||
|
||
# antidote.lite loader | ||
if [[ ! -d $ZPLUGINDIR/zsh_unplugged ]]; then | ||
git clone --quiet https://github.com/mattmc3/zsh_unplugged $ZPLUGINDIR/zsh_unplugged | ||
if [[ ! -d "$ZPLUGINDIR/zsh_unplugged" ]]; then | ||
git clone --quiet https://github.com/mattmc3/zsh_unplugged "$ZPLUGINDIR/zsh_unplugged" | ||
fi | ||
|
||
source $ZPLUGINDIR/zsh_unplugged/zsh_unplugged.zsh | ||
|
||
repos=( | ||
# load order! | ||
romkatv/powerlevel10k | ||
# deferred | ||
romkatv/zsh-defer | ||
|
||
zsh-users/zsh-history-substring-search | ||
zsh-users/zsh-autosuggestions | ||
|
||
#zsh-users/zsh-syntax-highlighting | ||
zdharma-continuum/fast-syntax-highlighting | ||
) | ||
|
||
# Load all plugins | ||
# antidote.lite loader | ||
source "$ZPLUGINDIR/zsh_unplugged/antidote.lite.zsh" | ||
plugin-clone $repos | ||
plugin-load $repos | ||
|
||
plugins-update() { | ||
plugin-update $repos | ||
} | ||
|
||
plugins-list() { | ||
ls $ZPLUGINDIR | ||
} | ||
|
||
plugins-clean() { | ||
rm -rfi $ZPLUGINDIR | ||
exec zsh | ||
} |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.