HOME ABOUT WEB GITHUB TOP BOTTOM PREV NEXT
BASH Aliases
Create/Edit “.bash_aliases”
- How many cores does your CPU have?
- For 2 cores, “MAKEFLAGS=’-j2’”
- For 4 cores, “MAKEFLAGS=’-j4’”
- Etc.
- You are not “cbkadal!”
- In ‘git commit -m “OS232 cbkadal”;’, replace “cbkadal” with your own account!
cat > $HOME/.bash_aliases << EOF
# REV01: Wed 08 Feb 2023 17:00
# START: Sun 09 Jan 2022 15:00
# If cores = 2; j=2
export MAKEFLAGS='-j2'
alias cl='clear;echo ""'
alias h='history'
alias gac='git add -A && git commit'
alias ggg='git pull; git add -A; git commit -m "OS232 cbkadal"; git push;'
alias glog='git log --all --decorate --oneline --graph'
alias mv='mv -i'
alias rm='rm -i'
alias sss='. ~/.bash_profile'
export EDITOR=/usr/bin/vi
export HISTSIZE=2000
export HISTFILESIZE=2000
export LFS=/mnt/lfs
EOF
source $HOME/.bash_profile
ℼ
(RESULT)
cbkadal@cbkadal:~$ cat > $HOME/.bash_aliases << EOF
> # REV01: Wed 08 Feb 2023 17:00
> # START: Sun 09 Jan 2022 15:00
> # If cores = 2; j=2
> export MAKEFLAGS='-j2'
>
> alias cl='clear;echo ""'
> alias h='history'
> alias gac='git add -A && git commit'
> alias ggg='git pull; git add -A; git commit -m "OS232 cbkadal"; git push;'
> alias glog='git log --all --decorate --oneline --graph'
> alias mv='mv -i'
> alias rm='rm -i'
> alias sss='. ~/.bash_profile'
> export EDITOR=/usr/bin/vi
> export HISTSIZE=2000
> export HISTFILESIZE=2000
> export LFS=/mnt/lfs
> EOF
cbkadal@cbkadal:~$ source $HOME/.bash_profile