From 8fe65a8ea02ad3d47a0953eab1875d2429792a0b Mon Sep 17 00:00:00 2001 From: koumakpet Date: Fri, 3 Apr 2020 22:29:36 +0200 Subject: [PATCH] Added optional ~/.config/sh/.extra file - Any user can create this file and put whatever they want in there - It will be sourced after loading aliases and functions --- files/.config/sh/.aliases | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/files/.config/sh/.aliases b/files/.config/sh/.aliases index 5a5025b..330938a 100755 --- a/files/.config/sh/.aliases +++ b/files/.config/sh/.aliases @@ -60,7 +60,7 @@ alias fhere='find . -name' # Find file/dir from currrent dir alias ssh-list='ss | grep ssh' # List all SSH connections alias alert='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"' alias psg='\ps aux | grep -v grep | grep -i -e VSZ -e' # Get searchable process with nice output -alias ip-show="dig +short myip.opendns.com @resolver1.opendns.com" # Gets your IP address +alias ip-show="curl ifconfig.me" # Gets your IP address alias reload="exec \$SHELL" # Reload the shell (i.e. invoke as a login shell alias path='echo -e ${PATH//:/\\n}' # Print each PATH entry on a separate line alias dotfiles='exa -hula -d .[a-z]* | grep -v ^d' # Show all dotfiles @@ -92,6 +92,7 @@ fi # Functions -if [ -f ~/.config/sh/.functions ]; then - source ~/.config/sh/.functions -fi +[ -f ~/.config/sh/.functions ] && source ~/.config/sh/.functions + +# Extra +[ -f ~/.config/sh/.extra ] && source ~/.config/sh/.extra