Consistently use $HOME

This commit is contained in:
histalek 2021-04-16 12:04:30 +02:00
parent 4d098ce3e3
commit 679375e1b5
No known key found for this signature in database
GPG key ID: ED1D6449704FDE03
2 changed files with 9 additions and 7 deletions

View file

@ -1,8 +1,8 @@
# general aliases # general aliases
## Alias handling ## Alias handling
alias editalias='vim ~/.config/oh-my-zsh/aliases.zsh' alias editalias='vim $HOME/.config/oh-my-zsh/aliases.zsh'
alias updatealias='source ~/.zshrc' alias updatealias='source $HOME/.zshrc'
## https://www.atlassian.com/git/tutorials/dotfiles ## https://www.atlassian.com/git/tutorials/dotfiles
alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' alias dotfiles='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
@ -48,3 +48,8 @@ alias free='free -m'
alias ipa='ip -br -c addr show' alias ipa='ip -br -c addr show'
alias ipl='ip -br -c link show' alias ipl='ip -br -c link show'
## get parent and child processes for a given name
function psgrep {
ps axuf | grep -v grep | grep "$@" -i --color=auto;
}

7
.zshrc
View file

@ -2,7 +2,7 @@
# export PATH=$HOME/bin:/usr/local/bin:$PATH # export PATH=$HOME/bin:/usr/local/bin:$PATH
# Path to your oh-my-zsh installation. # Path to your oh-my-zsh installation.
export ZSH="/home/simon/.oh-my-zsh" export ZSH="$HOME/.oh-my-zsh"
# See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes # See https://github.com/ohmyzsh/ohmyzsh/wiki/Themes
ZSH_THEME="agnoster" ZSH_THEME="agnoster"
@ -21,13 +21,10 @@ COMPLETION_WAITING_DOTS="true"
HIST_STAMPS="dd.mm.yyyy" HIST_STAMPS="dd.mm.yyyy"
# Would you like to use another custom folder than $ZSH/custom? # Would you like to use another custom folder than $ZSH/custom?
ZSH_CUSTOM=/home/simon/.config/oh-my-zsh ZSH_CUSTOM="$HOME/.config/oh-my-zsh"
# Which plugins would you like to load?
# Standard plugins can be found in $ZSH/plugins/ # Standard plugins can be found in $ZSH/plugins/
# Custom plugins may be added to $ZSH_CUSTOM/plugins/ # Custom plugins may be added to $ZSH_CUSTOM/plugins/
# Example format: plugins=(rails git textmate ruby lighthouse)
# Add wisely, as too many plugins slow down shell startup.
plugins=( plugins=(
git git
ansible ansible