From 679375e1b5ae6ee43451330218e36d44f2c0ab36 Mon Sep 17 00:00:00 2001 From: histalek Date: Fri, 16 Apr 2021 12:04:30 +0200 Subject: [PATCH] Consistently use $HOME --- .config/oh-my-zsh/aliases.zsh | 9 +++++++-- .zshrc | 7 ++----- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.config/oh-my-zsh/aliases.zsh b/.config/oh-my-zsh/aliases.zsh index a72351f..38afdc8 100644 --- a/.config/oh-my-zsh/aliases.zsh +++ b/.config/oh-my-zsh/aliases.zsh @@ -1,8 +1,8 @@ # general aliases ## Alias handling -alias editalias='vim ~/.config/oh-my-zsh/aliases.zsh' -alias updatealias='source ~/.zshrc' +alias editalias='vim $HOME/.config/oh-my-zsh/aliases.zsh' +alias updatealias='source $HOME/.zshrc' ## https://www.atlassian.com/git/tutorials/dotfiles 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 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; +} + diff --git a/.zshrc b/.zshrc index 1a0e6a0..0058e43 100644 --- a/.zshrc +++ b/.zshrc @@ -2,7 +2,7 @@ # export PATH=$HOME/bin:/usr/local/bin:$PATH # 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 ZSH_THEME="agnoster" @@ -21,13 +21,10 @@ COMPLETION_WAITING_DOTS="true" HIST_STAMPS="dd.mm.yyyy" # 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/ # 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=( git ansible