Skip to content

Instantly share code, notes, and snippets.

@motchy869
Last active May 16, 2024 13:21
Show Gist options
  • Save motchy869/5261a1bebd5439ba628cd35d60044030 to your computer and use it in GitHub Desktop.
Save motchy869/5261a1bebd5439ba628cd35d60044030 to your computer and use it in GitHub Desktop.
My favorite .bashrc for PetaLinux
# ~/.bashrc: executed by bash(1) for non-login shells.
export PS1='\[\e]0;\u@\h: \w\a\]${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ \[\]'
umask 022
HISTCONTROL=ignoreboth
# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval `dircolors`
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'
alias ls='ls --color=auto'
# auto-completion from input history
# up-arrow key
bind '"\e[A": history-search-backward'
# down-arrow key
bind '"\e[B": history-search-forward'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment