Test of integration of brew and utils

This commit is contained in:
Andrea Mistrali 2021-10-28 10:11:01 +02:00
parent 360ae5fa01
commit a98a44ba5d
No known key found for this signature in database
GPG Key ID: 6FB0A77F6D5DA9B2
6 changed files with 42 additions and 30 deletions

3
.gitmodules vendored
View File

@ -1,3 +1,6 @@
[submodule "zsh.d/prompts/pure"] [submodule "zsh.d/prompts/pure"]
path = zsh.d/prompts/pure path = zsh.d/prompts/pure
url = https://github.com/sindresorhus/pure.git 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

View File

@ -3,8 +3,6 @@
## Vars used always ## Vars used always
PATH="/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin:$HOME/bin:." 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 MIBS=all
LOGD=/var/log LOGD=/var/log
@ -27,10 +25,20 @@ EDITOR=vim
VISUAL=vim VISUAL=vim
export QUOTING_STYLE=escape 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 # Set umask to collaborative mode
umask 002 umask 002
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

View File

@ -1,29 +1,18 @@
####################################################################################### #######################################################################################
# Functions # 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 all functions in zshfunctions
autoload -U fancyTerm #
autoload -U ./zshfunctions/*(.:t)
# # repo_char - returns a character based on the type of repo we are in # # cdb - Goes to folder by complete path
# autoload -U repo_char # 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 : # vim: set ts=4 sw=4 tw=0 ft=zsh :

12
zsh.d/90-plugins.zsh Normal file
View File

@ -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

View File

@ -6,9 +6,8 @@ alias ls='ls -F -G'
alias skill=killall 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 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 ' # Setup iTerm shell integration
# alias vi='/Applications/MacVim.app/Contents/MacOS/Vim ' 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"
# alias mvim='mvim --remote-tab-silent '
# alias mvim='open -a MacVim '
# vim: set ts=4 sw=4 tw=0 ft=zsh : # vim: set ts=4 sw=4 tw=0 ft=zsh :

1
zsh.d/plugins/zsh-z Submodule

@ -0,0 +1 @@
Subproject commit 9eb7b94c87adb56d09680a8eee543dc9f2cd86c0