separate sh alias file

This commit is contained in:
arnaucube
2021-03-07 18:53:50 +01:00
parent 8c5eb7e522
commit 436fb7234f
3 changed files with 18 additions and 15 deletions

15
.bash_alias Normal file
View File

@@ -0,0 +1,15 @@
# ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias lst='ls -altr'
# alias
alias n='nvim'
alias t='tmux'
# git alias
alias gdf='git difftool --tool=vimdiff'
alias gs='git status'
# gitg branch views, line from https://gitlab.com/dhole/dot_files/blob/master/.bash_aliases#L39
alias gitg="git log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%ar)%C(cyan) %an<%ae>%Creset'"

17
.bashrc
View File

@@ -27,21 +27,6 @@ else
fi
unset color_prompt force_color_prompt
# gitg branch views, line from https://gitlab.com/dhole/dot_files/blob/master/.bash_aliases#L39
alias gitg="git log --color --graph --abbrev-commit --pretty=format:'%Cred%h%Creset%C(yellow)%d%Creset %s %Cgreen(%ar)%C(cyan) %an<%ae>%Creset'"
# ls aliases
alias ll='ls -alF'
alias la='ls -A'
alias l='ls -CF'
alias lst='ls -altr'
# alias
alias n='nvim'
alias t='tmux'
alias c='calcurse-caldav && calcurse && calcurse-caldav'
alias gdf='git difftool --tool=vimdiff'
export PATH=$PATH:/home/user/bin
# go
@@ -57,3 +42,5 @@ alias pip='/usr/bin/pip3'
export EDITOR=vim
export LC_ALL="en_US.UTF-8"
source ~/.bash_alias

View File

@@ -39,6 +39,7 @@ curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs \
## :GoInstallBinaries
# bash
cp .bash_alias ~/.bash_alias
echo "append .bashrc of this repo lines to the .bashrc system file"
cat .bashrc >> ~/.bashrc