* correct shell aliases appropriate by latest legacy forked repo version on fe8fc34e7a8e277b08cd2f3f0bcf2b6f918e9551
This commit is contained in:
@ -1,7 +0,0 @@
|
|||||||
alias gst='git status'
|
|
||||||
alias ga='git add'
|
|
||||||
alias gc='git commit -m'
|
|
||||||
alias gush='git push'
|
|
||||||
alias gull='git pull'
|
|
||||||
alias gb='git branch'
|
|
||||||
alias dc='docker-compose'
|
|
@ -1,36 +1,15 @@
|
|||||||
# If not running interactively, don't do anything
|
alias tmux='tmux -2'
|
||||||
[ -z "$PS1" ] && return
|
|
||||||
|
|
||||||
# Source global definitions
|
if command -v eza >/dev/null 2>&1; then
|
||||||
test -r /etc/bashrc && . /etc/bashrc
|
alias ls='eza'
|
||||||
|
else
|
||||||
|
alias ls='ls --color=auto'
|
||||||
|
fi
|
||||||
|
|
||||||
test -r ~/.bash_aliases && . ~/.bash_aliases
|
alias gst='git status'
|
||||||
|
alias ga='git add'
|
||||||
# don't put duplicate lines in the history. See bash(1) for more options
|
alias gc='git commit -m'
|
||||||
# ... or force ignoredups and ignorespace
|
alias gush='git push'
|
||||||
HISTCONTROL=ignoreboth
|
alias gull='git pull'
|
||||||
export HISTIGNORE="&:ls:[bf]g:pwd:exit:cd .."
|
alias gb='git branch'
|
||||||
|
alias dc='docker-compose'
|
||||||
# append to the history file, don't overwrite it
|
|
||||||
shopt -s histappend
|
|
||||||
PROMPT_COMMAND="history -a;$PROMPT_COMMAND"
|
|
||||||
|
|
||||||
# Store multiline commands as one line.
|
|
||||||
shopt -s cmdhist
|
|
||||||
|
|
||||||
# for setting history length see HISTSIZE and HISTFILESIZE in bash(1)
|
|
||||||
HISTSIZE=10000
|
|
||||||
HISTFILESIZE=20000
|
|
||||||
|
|
||||||
# check the window size after each command and, if necessary,
|
|
||||||
# update the values of LINES and COLUMNS.
|
|
||||||
shopt -s checkwinsize
|
|
||||||
|
|
||||||
# Spellcheck directories
|
|
||||||
shopt -s dirspell
|
|
||||||
|
|
||||||
# enable programmable completion features (you don't need to enable
|
|
||||||
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
|
|
||||||
# sources /etc/bash.bashrc).
|
|
||||||
test -f /usr/share/bash-completion/bash_completion && . /usr/share/bash-completion/bash_completion
|
|
||||||
test -f /etc/bash_completion && . /etc/bash_completion
|
|
||||||
|
Reference in New Issue
Block a user