Browse Source

* correct shell aliases appropriate by latest legacy forked repo version on fe8fc34e7a

master
dimti 3 months ago
parent
commit
d3a7f20f84
  1. 7
      .bash_aliases
  2. 51
      .shell-aliases

7
.bash_aliases

@ -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'

51
.shell-aliases

@ -1,36 +1,15 @@
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# Source global definitions
test -r /etc/bashrc && . /etc/bashrc
test -r ~/.bash_aliases && . ~/.bash_aliases
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoreboth
export HISTIGNORE="&:ls:[bf]g:pwd:exit:cd .."
# 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
alias tmux='tmux -2'
if command -v eza >/dev/null 2>&1; then
alias ls='eza'
else
alias ls='ls --color=auto'
fi
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'
Loading…
Cancel
Save