mirror of
https://github.com/kou029w/dotfiles.git
synced 2025-02-03 23:58:38 +00:00
Compare commits
No commits in common. "3944615286636978be21095627996e64f354787d" and "2e583b2ae549f65537371c7d58ca978e87df384f" have entirely different histories.
3944615286
...
2e583b2ae5
6 changed files with 13 additions and 53 deletions
|
@ -9,17 +9,10 @@ brew "hadolint"
|
||||||
brew "jq"
|
brew "jq"
|
||||||
brew "mdbook"
|
brew "mdbook"
|
||||||
brew "mkcert"
|
brew "mkcert"
|
||||||
|
brew "sqlite"
|
||||||
brew "rclone"
|
brew "rclone"
|
||||||
brew "shellcheck"
|
brew "shellcheck"
|
||||||
brew "sqlite"
|
|
||||||
brew "tea"
|
brew "tea"
|
||||||
brew "ykman"
|
brew "ykman"
|
||||||
brew "drone/drone/drone"
|
brew "drone/drone/drone"
|
||||||
brew "oven-sh/bun/bun"
|
brew "oven-sh/bun/bun"
|
||||||
|
|
||||||
if OS.mac?
|
|
||||||
cask "docker"
|
|
||||||
cask "logseq"
|
|
||||||
cask "slack"
|
|
||||||
cask "visual-studio-code"
|
|
||||||
end
|
|
||||||
|
|
3
.bashrc
3
.bashrc
|
@ -5,7 +5,8 @@ HISTCONTROL=ignoreboth:erasedups
|
||||||
HISTFILESIZE=$((0x7fffffff))
|
HISTFILESIZE=$((0x7fffffff))
|
||||||
HISTSIZE=$((0x7fffffff))
|
HISTSIZE=$((0x7fffffff))
|
||||||
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
|
PROMPT_COMMAND='[[ $_PWD == $PWD ]] || { _PWD=$PWD; ls; }'
|
||||||
PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] $(__git_ps1 "\[\033[32m\](%s)\[\033[00m\]")\n\$ '
|
PS1=$PS1'\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
|
PS1=${PS1%'\$ '}'$(__git_ps1 " \[\033[32m\](%s)\[\033[00m\]")\n\$ '
|
||||||
alias ..='cd ..'
|
alias ..='cd ..'
|
||||||
alias cp='cp --reflink=auto'
|
alias cp='cp --reflink=auto'
|
||||||
alias diff='diff --color=auto'
|
alias diff='diff --color=auto'
|
||||||
|
|
21
.profile
21
.profile
|
@ -1,20 +1,11 @@
|
||||||
export EDITOR=nano
|
export EDITOR=nano
|
||||||
export PATH="$HOME/.local/bin:$PATH"
|
export PATH="$HOME/.local/bin:$PATH"
|
||||||
|
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew";
|
||||||
|
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar";
|
||||||
|
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew";
|
||||||
|
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}";
|
||||||
|
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:";
|
||||||
|
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}";
|
||||||
export DENO_INSTALL_ROOT="${HOME}/.local"
|
export DENO_INSTALL_ROOT="${HOME}/.local"
|
||||||
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
[ -f "$HOME/.cargo/env" ] && . "$HOME/.cargo/env"
|
||||||
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
|
[ -n "$BASH_VERSION" ] && . "$HOME/.bashrc"
|
||||||
if [ -d /usr/local/Homebrew ]; then
|
|
||||||
export HOMEBREW_PREFIX="/usr/local"
|
|
||||||
export HOMEBREW_CELLAR="/usr/local/Cellar"
|
|
||||||
export HOMEBREW_REPOSITORY="/usr/local/Homebrew"
|
|
||||||
export PATH="/usr/local/bin:/usr/local/sbin${PATH+:$PATH}"
|
|
||||||
export MANPATH="/usr/local/share/man${MANPATH+:$MANPATH}:"
|
|
||||||
export INFOPATH="/usr/local/share/info:${INFOPATH:-}"
|
|
||||||
else
|
|
||||||
export HOMEBREW_PREFIX="/home/linuxbrew/.linuxbrew"
|
|
||||||
export HOMEBREW_CELLAR="/home/linuxbrew/.linuxbrew/Cellar"
|
|
||||||
export HOMEBREW_REPOSITORY="/home/linuxbrew/.linuxbrew/Homebrew"
|
|
||||||
export PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin${PATH+:$PATH}"
|
|
||||||
export MANPATH="/home/linuxbrew/.linuxbrew/share/man${MANPATH+:$MANPATH}:"
|
|
||||||
export INFOPATH="/home/linuxbrew/.linuxbrew/share/info:${INFOPATH:-}"
|
|
||||||
fi
|
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
/Library/Developer/CommandLineTools/usr/share/git-core/git-completion.zsh
|
|
19
.zshrc
19
.zshrc
|
@ -1,19 +0,0 @@
|
||||||
. /Library/Developer/CommandLineTools/usr/share/git-core/git-prompt.sh
|
|
||||||
zstyle ':completion:*:*:git:*' script /Library/Developer/CommandLineTools/usr/share/git-core/git-completion.bash
|
|
||||||
fpath=(~/.zsh/functions $fpath)
|
|
||||||
autoload -Uz compinit && compinit
|
|
||||||
alias ..='cd ..'
|
|
||||||
alias cp='cp --reflink=auto'
|
|
||||||
alias diff='diff --color=auto'
|
|
||||||
alias grep='grep --color=auto'
|
|
||||||
alias ll='ls -alF'
|
|
||||||
alias ls='ls --color=auto'
|
|
||||||
precmd() {
|
|
||||||
[[ "$TERM" == xterm-256color ]] && print -Pn -- '\e]2;%n@%m %~\a'
|
|
||||||
[[ "$_PWD" == "$PWD" ]] && return
|
|
||||||
_PWD="$PWD"
|
|
||||||
ls
|
|
||||||
}
|
|
||||||
setopt PROMPT_SUBST
|
|
||||||
PROMPT='%B%F{green}%n@%m%f%b:%B%F{blue}%~%f%b $(__git_ps1 "%%F{green}(%s)%%f")
|
|
||||||
%# '
|
|
|
@ -8,14 +8,9 @@ function install_homebrew_packages() {
|
||||||
sudo --user="#$uid" \
|
sudo --user="#$uid" \
|
||||||
NONINTERACTIVE=1 \
|
NONINTERACTIVE=1 \
|
||||||
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
|
||||||
if [[ -x /usr/local/bin/brew ]]; then
|
|
||||||
sudo --user="#$uid" \
|
|
||||||
/usr/local/bin/brew bundle --global
|
|
||||||
else
|
|
||||||
sudo --user="#$uid" \
|
sudo --user="#$uid" \
|
||||||
/home/linuxbrew/.linuxbrew/bin/brew bundle --global
|
/home/linuxbrew/.linuxbrew/bin/brew bundle --global
|
||||||
fi
|
|
||||||
}
|
}
|
||||||
|
|
||||||
[[ $(uname -sm) =~ ^(Linux x86_64|Darwin x86_64)$ ]] &&
|
[[ $(uname -sm) =~ ^(Linux x86_64)$ ]] \
|
||||||
install_homebrew_packages
|
&& install_homebrew_packages
|
||||||
|
|
Loading…
Add table
Reference in a new issue