diff options
Diffstat (limited to 'src/guix-config/.bashrc')
-rw-r--r-- | src/guix-config/.bashrc | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/src/guix-config/.bashrc b/src/guix-config/.bashrc index bc38007..984de87 100644 --- a/src/guix-config/.bashrc +++ b/src/guix-config/.bashrc @@ -1,3 +1,39 @@ +alias c="clear" +alias cp="cp -i" +alias grep="grep --color=auto" +alias ll="ls -l" +alias ls="ls -p --color=auto" +alias mkd="mkdir -pv" +alias mv="mv -i" +alias rm="rm -i" +alias vi="vim" +alias ytta="yt-dlp --paths /home/bdunahu/Media/Audio --extract-audio --format bestaudio/best" +alias yttv="yt-dlp --paths /home/bdunahu/Media/Videos -f b" +# Bash initialization for interactive non-login shells and +# for remote shells (info "(bash) Bash Startup Files"). + +# Export 'SHELL' to child processes. Programs such as 'screen' +# honor it and otherwise use /bin/sh. +export SHELL + +if [[ $- != *i* ]] +then + # We are being invoked from a non-interactive shell. If this + # is an SSH session (as in "ssh host command"), source + # /etc/profile so we get PATH and other essential variables. + [[ -n "$SSH_CLIENT" ]] && source /etc/profile + + # Don't do anything else. + return +fi + +# Source the system-wide file. +[ -f /etc/bashrc ] && source /etc/bashrc + +alias ls='ls -p --color=auto' +alias ll='ls -l' +alias grep='grep --color=auto' +alias ip='ip -color=auto' # Export 'SHELL' to child processes. Programs such as 'screen' # honor it and otherwise use /bin/sh. export SHELL @@ -44,3 +80,4 @@ export PATH=$HOME/Personal/scripts/:$PATH # fixes some errors with Anaconda3 and URxvt export TERMINFO=/usr/share/terminfo + |