Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisTitusTech committed Jun 29, 2024
2 parents f823929 + 1beb8b1 commit 79b9f13
Show file tree
Hide file tree
Showing 2 changed files with 41 additions and 4 deletions.
43 changes: 40 additions & 3 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ if [[ $iatest -gt 0 ]]; then bind "set bell-style visible"; fi
# Expand the history size
export HISTFILESIZE=10000
export HISTSIZE=500
export HISTTIMEFORMAT="%F %T" # add timestamp to history

# Don't put duplicate lines in the history and do not add lines that start with a space
export HISTCONTROL=erasedups:ignoredups:ignorespace
Expand Down Expand Up @@ -145,6 +146,7 @@ alias vi='nvim'
alias svi='sudo vi'
alias vis='nvim "+set si"'


# Change directory aliases
alias home='cd ~'
alias cd..='cd ..'
Expand All @@ -171,9 +173,12 @@ alias lt='ls -ltrh' # sort by date
alias lm='ls -alh |more' # pipe through 'more'
alias lw='ls -xAh' # wide listing format
alias ll='ls -Fls' # long listing format
alias labc='ls -lap' #alphabetical sort
alias labc='ls -lap' # alphabetical sort
alias lf="ls -l | egrep -v '^d'" # files only
alias ldir="ls -l | egrep '^d'" # directories only
alias lla='ls -Al' # List and Hidden Files
alias las='ls -A' # Hidden Files
alias lls='ls -l' # List

# alias chmod commands
alias mx='chmod a+x'
Expand Down Expand Up @@ -234,6 +239,14 @@ alias clickpaste='sleep 3; xdotool type "$(xclip -o -selection clipboard)"'

alias kssh="kitty +kitten ssh"

# alias to cleanup unused docker containers, images, networks, and volumes

alias docker-clean=' \
docker container prune -f ; \
docker image prune -f ; \
docker network prune -f ; \
docker volume prune -f '

#######################################################
# SPECIAL FUNCTIONS
#######################################################
Expand Down Expand Up @@ -367,14 +380,38 @@ distribution ()
gentoo)
dtype="gentoo"
;;
arch)
arch|manjaro)
dtype="arch"
;;
slackware)
dtype="slackware"
;;
*)
# If ID is not recognized, keep dtype as unknown
# Check ID_LIKE only if dtype is still unknown
if [ -n "$ID_LIKE" ]; then
case $ID_LIKE in
*fedora*|*rhel*|*centos*)
dtype="redhat"
;;
*sles*|*opensuse*)
dtype="suse"
;;
*ubuntu*|*debian*)
dtype="debian"
;;
*gentoo*)
dtype="gentoo"
;;
*arch*)
dtype="arch"
;;
*slackware*)
dtype="slackware"
;;
esac
fi

# If ID or ID_LIKE is not recognized, keep dtype as unknown
;;
esac
fi
Expand Down
2 changes: 1 addition & 1 deletion starship.toml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ truncation_symbol = "…/"
# Here is how you can shorten some long paths by text replacement
# similar to mapped_locations in Oh My Posh:
[directory.substitutions]
"Documents" = " "
"Documents" = "󰈙 "
"Downloads" = ""
"Music" = ""
"Pictures" = ""
Expand Down

0 comments on commit 79b9f13

Please sign in to comment.