맥 환경 업데이트

This commit is contained in:
2020-12-30 19:31:22 +09:00
parent 7d16866b6d
commit 6b8a604fd7
3 changed files with 8 additions and 6 deletions

View File

@@ -49,7 +49,7 @@ window:
# Values for `decorations` (macOS only): # Values for `decorations` (macOS only):
# - transparent: Title bar, transparent background and title bar buttons # - transparent: Title bar, transparent background and title bar buttons
# - buttonless: Title bar, transparent background, but no title bar buttons # - buttonless: Title bar, transparent background, but no title bar buttons
#decorations: full decorations: full
# Startup Mode (changes require restart) # Startup Mode (changes require restart)
# #

View File

@@ -16,7 +16,7 @@ shell="$(basename "$SHELL")"
if [ -x "$(command -v pkgin)" ]; then if [ -x "$(command -v pkgin)" ]; then
packages="$(pkgin list | wc -l)" packages="$(pkgin list | wc -l)"
elif [ -x "$(command -v brew)" ]; then elif [ -x "$(command -v brew)" ]; then
brew_packages="$(brew list | wc -l)" brew_packages="$(brew list --formula | wc -l)"
cask_packages="$(brew cask list 2> /dev/null | wc -l)" cask_packages="$(brew cask list 2> /dev/null | wc -l)"
packages="$(( ${brew_packages} + ${cask_packages} ))" packages="$(( ${brew_packages} + ${cask_packages} ))"
elif [ -x "$(command -v port)" ]; then elif [ -x "$(command -v port)" ]; then
@@ -57,10 +57,10 @@ if [ -x "$(command -v tput)" ]; then
fi fi
# you can change these # you can change these
lc="${reset}${bold}${cyan}" # labels lc="${reset}${bold}${magenta}" # labels
nc="${reset}${bold}${cyan}" # user and hostname nc="${reset}${bold}${magenta}" # user and hostname
ic="${reset}" # info ic="${reset}" # info
c0="${reset}${cyan}" # first color c0="${reset}${magenta}" # first color
## OUTPUT ## OUTPUT

2
zshrc
View File

@@ -106,7 +106,9 @@ source $ZSH/oh-my-zsh.sh
export GPG_TTY=$(tty) export GPG_TTY=$(tty)
alias vim=nvim alias vim=nvim
if [[ `uname` != "Darwin" ]]; then
alias open=xdg-open alias open=xdg-open
fi
ufetch ufetch
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh [ -f ~/.fzf.zsh ] && source ~/.fzf.zsh