mirror of
https://github.com/ItsDrike/dotfiles.git
synced 2025-04-28 05:02:26 +00:00
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
This commit is contained in:
parent
7acca71118
commit
8fe65a8ea0
1 changed files with 5 additions and 4 deletions
|
@ -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 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 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 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 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 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
|
alias dotfiles='exa -hula -d .[a-z]* | grep -v ^d' # Show all dotfiles
|
||||||
|
@ -92,6 +92,7 @@ fi
|
||||||
|
|
||||||
|
|
||||||
# Functions
|
# Functions
|
||||||
if [ -f ~/.config/sh/.functions ]; then
|
[ -f ~/.config/sh/.functions ] && source ~/.config/sh/.functions
|
||||||
source ~/.config/sh/.functions
|
|
||||||
fi
|
# Extra
|
||||||
|
[ -f ~/.config/sh/.extra ] && source ~/.config/sh/.extra
|
||||||
|
|
Loading…
Add table
Reference in a new issue