mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
More zsh stuff
This commit is contained in:
3
.gitignore
vendored
3
.gitignore
vendored
@@ -3,3 +3,6 @@
|
|||||||
**/plugins
|
**/plugins
|
||||||
**/.zcompdump*
|
**/.zcompdump*
|
||||||
**/.zcompdump
|
**/.zcompdump
|
||||||
|
**/.zcompcache
|
||||||
|
zsh/.config/zsh/history
|
||||||
|
**/.zsh_history
|
||||||
|
|||||||
1
Makefile
1
Makefile
@@ -1,6 +1,7 @@
|
|||||||
bootstrap-homebrew:
|
bootstrap-homebrew:
|
||||||
xcode-select --install | true
|
xcode-select --install | true
|
||||||
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
|
||||||
|
chmod -R go-w $(brew --prefix)/share
|
||||||
|
|
||||||
bootsrap-brews:
|
bootsrap-brews:
|
||||||
@brew bundle \
|
@brew bundle \
|
||||||
|
|||||||
@@ -15,6 +15,7 @@ brew "ripgrep"
|
|||||||
brew "stow"
|
brew "stow"
|
||||||
brew "swift-format"
|
brew "swift-format"
|
||||||
brew "zsh"
|
brew "zsh"
|
||||||
|
brew "zsh-completions"
|
||||||
|
|
||||||
# casks
|
# casks
|
||||||
cask "docker"
|
cask "docker"
|
||||||
|
|||||||
@@ -1,4 +0,0 @@
|
|||||||
list=( ${(Q)"${(z)$(<<\EO:list
|
|
||||||
'aspell-dictionaries' 'determine-rebottle-runners' 'postgresql-upgrade-database' 'services'
|
|
||||||
EO:list
|
|
||||||
)}"} )
|
|
||||||
File diff suppressed because it is too large
Load Diff
@@ -1,16 +1,12 @@
|
|||||||
|
|
||||||
# configure keeping history of commands
|
# configure keeping history of commands
|
||||||
|
|
||||||
HISTSIZE=200
|
|
||||||
|
|
||||||
# TODO: move to $ZDOTDIR/.zsh_history
|
# TODO: move to $ZDOTDIR/.zsh_history
|
||||||
HISTFILE=~/.zsh_history
|
|
||||||
setopt appendhistory
|
setopt appendhistory
|
||||||
setopt sharehistory
|
setopt sharehistory
|
||||||
setopt incappendhistory
|
setopt incappendhistory
|
||||||
|
|
||||||
# Allow useful scripts in ~/.bin to be in the search path.
|
|
||||||
export PATH=~/.bin:$PATH
|
|
||||||
|
|
||||||
autoload -Uz compinit
|
autoload -Uz compinit
|
||||||
zstyle ':completion:*' menu select
|
zstyle ':completion:*' menu select
|
||||||
@@ -30,6 +26,7 @@ autoload -Uz colors && colors
|
|||||||
source "$ZDOTDIR/zsh-functions"
|
source "$ZDOTDIR/zsh-functions"
|
||||||
|
|
||||||
zsh_add_file "zsh-aliases"
|
zsh_add_file "zsh-aliases"
|
||||||
|
zsh_add_file "zsh-exports"
|
||||||
|
|
||||||
# Plugins
|
# Plugins
|
||||||
zsh_add_plugin "zsh-users/zsh-autosuggestions"
|
zsh_add_plugin "zsh-users/zsh-autosuggestions"
|
||||||
@@ -41,7 +38,4 @@ fpath+="$ZDOTDIR/plugins/pure"
|
|||||||
autoload -U promptinit; promptinit
|
autoload -U promptinit; promptinit
|
||||||
prompt pure
|
prompt pure
|
||||||
|
|
||||||
export EDITOR="nvim"
|
|
||||||
|
|
||||||
|
|
||||||
cat < "$ZDOTDIR/banner"
|
cat < "$ZDOTDIR/banner"
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
#alias zshconfig="$ZDOTDIR"
|
#alias zshconfig="$ZDOTDIR"
|
||||||
alias zdots() { nvim "$ZDOTDIR" }
|
alias zdots() { nvim "$ZDOTDIR" }
|
||||||
alias dots() { nvim ~/.dotfiles }
|
alias dots() { nvim ~/.dotfiles }
|
||||||
|
alias reload() { source "$ZDOTDIR/.zshrc" }
|
||||||
|
|
||||||
alias mkcd() { mkdir $1 && cd $1 }
|
alias mkcd() { mkdir $1 && cd $1 }
|
||||||
alias l() { ls -lah "$@" }
|
alias l() { ls -lah "$@" }
|
||||||
|
|||||||
17
zsh/.config/zsh/zsh-exports
Normal file
17
zsh/.config/zsh/zsh-exports
Normal file
@@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
HISTSIZE=200
|
||||||
|
HISTFILE=$ZDOTDIR/history
|
||||||
|
|
||||||
|
# Allow useful scripts in ~/.bin to be in the search path.
|
||||||
|
export PATH=~/.bin:$PATH
|
||||||
|
|
||||||
|
# zsh-completions installed by homebrew
|
||||||
|
if type brew &>/dev/null; then
|
||||||
|
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
|
||||||
|
|
||||||
|
autoload -Uz compinit
|
||||||
|
compinit
|
||||||
|
fi
|
||||||
|
|
||||||
|
export EDITOR="nvim"
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
export ZDOTDIR=$HOME/.config/zsh
|
|
||||||
source "$HOME/.config/zsh/.zshrc"
|
|
||||||
Reference in New Issue
Block a user