Skip to content

Instantly share code, notes, and snippets.

@mdev88
Last active October 24, 2023 04:44
Show Gist options
  • Save mdev88/5a14ad712edf7b33983aea9e3f5678d9 to your computer and use it in GitHub Desktop.
Save mdev88/5a14ad712edf7b33983aea9e3f5678d9 to your computer and use it in GitHub Desktop.
My .bashrc aliases, tweaks and custom configs
# General
alias ll='ls -alF'
# Git
alias gitl='git log --pretty=oneline'
alias gitll="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cD) %C(bold blue)<%an>%Creset' --abbrev-commi>
alias gitlp='git log -p'
# Remove orphan packages in Manjaro/Arch
alias orphan='sudo pacman -Qtdq | sudo pacman -Rns -'
# Flutter
export PATH="$PATH:/home/user/flutter/bin"
CHROME_EXECUTABLE="/usr/bin/chromium"
# Show current git branch in prompt
parse_git_branch() {
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/(\1)/'
}
export PS1="\u@\h \[\e[32m\]\w \[\e[91m\]\$(parse_git_branch)\[\e[00m\]$ "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment