mirror of
https://github.com/zoriya/dotfiles.git
synced 2025-12-06 06:36:17 +00:00
Adding macos compatibility to the dotfiles.
This commit is contained in:
@@ -8,6 +8,7 @@ push()
|
||||
}
|
||||
|
||||
alias "s"="git status"
|
||||
alias "gs"="git status"
|
||||
alias "gp"="git pull"
|
||||
alias "gP"="git push"
|
||||
alias "gl"="git log"
|
||||
|
||||
@@ -1,7 +1,9 @@
|
||||
alias "jctl"="sudo journalctl -n 1000 -fu"
|
||||
|
||||
alias "open"="xdg-open"
|
||||
alias "op"="xdg-open"
|
||||
if ! type open &> /dev/null; then
|
||||
alias "open"="xdg-open"
|
||||
fi
|
||||
alias "op"="open"
|
||||
|
||||
alias "ssh"="kitty +kitten ssh"
|
||||
|
||||
|
||||
@@ -1,10 +1,10 @@
|
||||
[[ -f ~/.localrc ]] && source ~/.localrc
|
||||
source ~/.config/profile
|
||||
|
||||
export -U PATH=$PATH
|
||||
|
||||
alias edit=$EDITOR
|
||||
|
||||
[[ -f ~/.localrc ]] && source ~/.localrc
|
||||
[[ -f $XDG_CONFIG_HOME/zsh/localrc ]] && source $XDG_CONFIG_HOME/zsh/localrc
|
||||
[[ -f $XDG_CONFIG_HOME/profile ]] && source $XDG_CONFIG_HOME/profile
|
||||
|
||||
@@ -48,10 +48,20 @@ function zvm_after_init()
|
||||
bindkey '^H' backward-kill-word
|
||||
bindkey '5~' kill-word
|
||||
|
||||
ZSH=/usr/share/oh-my-zsh/
|
||||
ZSH_CUSTOM=/usr/share/zsh
|
||||
if type brew &>/dev/null; then
|
||||
ZSH=~/.oh-my-zsh
|
||||
source $(brew --prefix)/opt/powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
|
||||
FPATH=$(brew --prefix)/share/zsh-completions:$FPATH
|
||||
else
|
||||
ZSH=/usr/share/oh-my-zsh/
|
||||
ZSH_CUSTOM=/usr/share/zsh
|
||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
fi
|
||||
|
||||
|
||||
zstyle ':omz:update' mode disabled
|
||||
source /usr/share/zsh-theme-powerlevel10k/powerlevel10k.zsh-theme
|
||||
|
||||
# Enable Powerlevel10k instant prompt. Should stay close to the top of ~/.zshrc.
|
||||
# Initialization code that may require console input (password prompts, [y/n]
|
||||
|
||||
Reference in New Issue
Block a user