Last active
October 24, 2023 04:44
-
-
Save mdev88/5a14ad712edf7b33983aea9e3f5678d9 to your computer and use it in GitHub Desktop.
My .bashrc aliases, tweaks and custom configs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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