Last active
June 20, 2022 13:18
-
-
Save lucien144/56fbb184b1ec01fae1adf2e7abb626b6 to your computer and use it in GitHub Desktop.
Server .bashrc
This file contains hidden or 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
if [ -f ~/.bashrc ]; then | |
. ~/.bashrc | |
fi |
This file contains hidden or 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
# https://github.com/jimeh/git-aware-prompt | |
# Install 👇 | |
# wget https://gist.githubusercontent.com/lucien144/56fbb184b1ec01fae1adf2e7abb626b6/raw/0065dcd767feb3b7152db8c9f014c38da3694ffe/install.sh && cat install.sh | bash | |
export GITAWAREPROMPT=~/.bash/git-aware-prompt | |
source "${GITAWAREPROMPT}/main.sh" | |
export PS1="\${debian_chroot:+(\$debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\] \[$txtcyn\]\$git_branch\[$txtred\]\$git_dirty\[$txtrst\]\$ " | |
alias h="cd ~" | |
alias ..="cd .." | |
alias gp="git pull" | |
alias gtree="git log --all --graph --decorate --oneline --simplify-by-decoration" | |
alias gls="git log --pretty='%C(Yellow)%h %C(reset)%ad (%C(Green)%cr%C(reset))%x09 %C(Cyan)%an: %C(reset)%s'" | |
alias l="ls -la" | |
cd ~/web | |
pwd | |
ls -la |
This file contains hidden or 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
#!/bin/bash | |
cd ~ | |
wget https://gist.githubusercontent.com/lucien144/56fbb184b1ec01fae1adf2e7abb626b6/raw/28d695611306e35b6b4c3d05fa8e1945c91e54a4/.bash_profile | |
wget https://gist.githubusercontent.com/lucien144/56fbb184b1ec01fae1adf2e7abb626b6/raw/1d8a71172b1890adfe43d179f69fba66324b2014/.bashrc | |
mkdir ~/.bash | |
cd ~/.bash | |
git clone https://github.com/jimeh/git-aware-prompt.git | |
rm ~/install.sh |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment