mirror of https://github.com/akelge/zsh
Test of integration of brew and utils
This commit is contained in:
parent
360ae5fa01
commit
a98a44ba5d
|
@ -1,3 +1,6 @@
|
|||
[submodule "zsh.d/prompts/pure"]
|
||||
path = zsh.d/prompts/pure
|
||||
url = https://github.com/sindresorhus/pure.git
|
||||
[submodule "zsh.d/plugins/zsh-z"]
|
||||
path = zsh.d/plugins/zsh-z
|
||||
url = https://github.com/agkozak/zsh-z
|
||||
|
|
|
@ -3,8 +3,6 @@
|
|||
|
||||
## Vars used always
|
||||
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:."
|
||||
# LANG="it_IT.UTF-8"
|
||||
# TZ='Europe/Rome'
|
||||
MIBS=all
|
||||
LOGD=/var/log
|
||||
|
||||
|
@ -27,10 +25,20 @@ EDITOR=vim
|
|||
VISUAL=vim
|
||||
|
||||
export QUOTING_STYLE=escape
|
||||
#
|
||||
# Hack for svn
|
||||
export SVN_EDITOR=${VISUAL}
|
||||
|
||||
|
||||
# Setup brew
|
||||
# We need it here to fix the PATH
|
||||
# so we can setup pyenv and other stuff
|
||||
|
||||
for prefix in /usr/local /opt/homebrew; do
|
||||
brew=$(whence $prefix/bin/brew)
|
||||
if [ $brew ]; then
|
||||
eval "$($brew shellenv)"
|
||||
fi
|
||||
done
|
||||
|
||||
# Set umask to collaborative mode
|
||||
umask 002
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -1,29 +1,18 @@
|
|||
#######################################################################################
|
||||
# Functions
|
||||
|
||||
# cdb - Goes to folder by complete path
|
||||
autoload -U cdb
|
||||
|
||||
# hist - Grep from history
|
||||
autoload -U hist
|
||||
|
||||
# hdu - Human readable report of files and directories sizes
|
||||
autoload -U hdu
|
||||
|
||||
# dust - list total size in . directory
|
||||
autoload -U dust
|
||||
|
||||
# bak - remove backup files
|
||||
autoload -U bak
|
||||
#
|
||||
# fancyTerm - returns true if we are on xterm/rxvt/screen, elsewhere false
|
||||
autoload -U fancyTerm
|
||||
# Autoload all functions in zshfunctions
|
||||
#
|
||||
autoload -U ./zshfunctions/*(.:t)
|
||||
|
||||
# # repo_char - returns a character based on the type of repo we are in
|
||||
# autoload -U repo_char
|
||||
# # cdb - Goes to folder by complete path
|
||||
# autoload -U cdb
|
||||
|
||||
autoload -U x509
|
||||
# # bak - remove backup files
|
||||
# autoload -U bak
|
||||
|
||||
autoload -U awsprofile
|
||||
# autoload -U x509
|
||||
|
||||
# autoload -U awsprofile
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
# pyenv
|
||||
if type pyenv; then
|
||||
export PYENV_ROOT="$HOME/.pyenv"
|
||||
eval "$(pyenv init --path)"
|
||||
eval "$(pyenv init -)"
|
||||
fi
|
||||
|
||||
# thefuck
|
||||
type thefuck && eval $(thefuck --alias)
|
||||
|
||||
#z
|
||||
type ./plugins/zsh-z/zsh-z.plugin.zsh && source ./plugins/zsh-z/zsh-z.plugin.zsh
|
|
@ -6,9 +6,8 @@ alias ls='ls -F -G'
|
|||
alias skill=killall
|
||||
alias lsrebuild='/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain system -domain user'
|
||||
|
||||
# alias vim='/Applications/MacVim.app/Contents/MacOS/Vim '
|
||||
# alias vi='/Applications/MacVim.app/Contents/MacOS/Vim '
|
||||
# alias mvim='mvim --remote-tab-silent '
|
||||
# alias mvim='open -a MacVim '
|
||||
# Setup iTerm shell integration
|
||||
test -e $HOME/.iterm2_shell_integration.zsh && source $HOME/.iterm2_shell_integration.zsh && export ITERM_ENABLE_SHELL_INTEGRATION_WITH_TMUX=YES || echo "iTerm sh integration not installed"
|
||||
|
||||
|
||||
# vim: set ts=4 sw=4 tw=0 ft=zsh :
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 9eb7b94c87adb56d09680a8eee543dc9f2cd86c0
|
Loading…
Reference in New Issue