Browse Source

separate sh alias file

master
arnaucube 3 years ago
parent
commit
436fb7234f
3 changed files with 18 additions and 15 deletions
  1. +15
    -0
      .bash_alias
  2. +2
    -15
      .bashrc
  3. +1
    -0
      install-new-server.sh

+ 15
- 0
.bash_alias

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

+ 2
- 15
.bashrc

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

+ 1
- 0
install-new-server.sh

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

Loading…
Cancel
Save