Skip to content

Commit

Permalink
feat: Added alias definition for Bash
Browse files Browse the repository at this point in the history
  • Loading branch information
mdsanima committed Jan 6, 2024
1 parent 7668303 commit e0d9df3
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,11 +90,6 @@ alias l='ls -CF'
# Add an alert alias for long running commands.
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 definitions.
if [ -f ~/.aliases ]; then
. ~/.aliases
fi

# Enable programmable completion features.
if ! shopt -oq posix; then
if [ -f /usr/share/bash-completion/bash_completion ]; then
Expand All @@ -109,3 +104,13 @@ if [[ $HOST == 'jet-1' || $HOST == 'jet-2' ]]; then
export PATH=/usr/local/cuda/bin${PATH:+:${PATH}}
export LD_LIBRARY_PATH=/usr/local/cuda/lib64${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
fi

# Alias definitions from bash.
if [ -f ~/.bash_aliases ]; then
. ~/.bash_aliases
fi

# Alias definitions from zsh.
if [ -f ~/.aliases ]; then
. ~/.aliases
fi

0 comments on commit e0d9df3

Please sign in to comment.