bash update
This commit is contained in:
parent
928205f943
commit
da9ac8be17
|
@ -3,7 +3,7 @@
|
||||||
alias ls='ls -F --color'
|
alias ls='ls -F --color'
|
||||||
alias l='ls -lh'
|
alias l='ls -lh'
|
||||||
alias d='ls -al | egrep ^d'
|
alias d='ls -al | egrep ^d'
|
||||||
alias dl='ls -al | egrep ^l'
|
alias dl='ls -al | egrep "^[d|l]"'
|
||||||
alias ll='ls -alh'
|
alias ll='ls -alh'
|
||||||
alias h=history
|
alias h=history
|
||||||
alias td='todo -c --force-colour --filter -done,+children | less -r'
|
alias td='todo -c --force-colour --filter -done,+children | less -r'
|
||||||
|
@ -15,12 +15,38 @@ alias tm=tmux
|
||||||
alias tma='tmux attach'
|
alias tma='tmux attach'
|
||||||
alias tmn='tmux new'
|
alias tmn='tmux new'
|
||||||
|
|
||||||
# racourcis
|
# raccourcis
|
||||||
alias va='vi ~/.bash_aliases'
|
alias vmc='vim ~/.mailcap'
|
||||||
alias vb='vi ~/.bashrc'
|
|
||||||
alias vm='vi ~/.mutt/muttrc'
|
|
||||||
|
|
||||||
|
|
||||||
|
# bash
|
||||||
|
alias sa='source ~/.bash_aliases'
|
||||||
|
alias va='vim ~/.bash_aliases'
|
||||||
|
alias vb='vim ~/.bashrc'
|
||||||
|
|
||||||
|
# irssi
|
||||||
|
alias vic='vim ~/.irssi/config'
|
||||||
|
|
||||||
|
# mutt
|
||||||
alias cm='cd ~/.mutt'
|
alias cm='cd ~/.mutt'
|
||||||
|
alias vm='vim ~/.mutt/muttrc'
|
||||||
|
alias vma='vim ~/.mutt/alias'
|
||||||
|
|
||||||
|
# w3m
|
||||||
|
alias vw='vim ~/.w3m/config'
|
||||||
|
|
||||||
|
# fzf
|
||||||
|
alias vf='vim $(fzf --preview="head -$LINES {}")'
|
||||||
|
alias of='xdg-open "$(fzf --preview="head -$LINES {}")"'
|
||||||
|
|
||||||
|
#newsboat
|
||||||
|
alias nb=newsboat
|
||||||
|
alias cnb='cd ~/.newsboat'
|
||||||
|
alias vnbu='vim ~/.newsboat/urls'
|
||||||
|
alias vnbc='vim ~/.newsboat/config'
|
||||||
|
|
||||||
|
# dirs
|
||||||
|
alias cb='cd ~/bin'
|
||||||
alias cdoc='cd ~/docs/docs-braque'
|
alias cdoc='cd ~/docs/docs-braque'
|
||||||
alias cdot='cd ~/dotfiles'
|
alias cdot='cd ~/dotfiles'
|
||||||
alias csrc='cd ~/src'
|
alias csrc='cd ~/src'
|
||||||
|
|
30
.bashrc
30
.bashrc
|
@ -3,6 +3,7 @@
|
||||||
|
|
||||||
# If not running interactively, don't do anything
|
# If not running interactively, don't do anything
|
||||||
[ -z "$PS1" ] && return
|
[ -z "$PS1" ] && return
|
||||||
|
echo ">> .bashrc"
|
||||||
|
|
||||||
# autocheck local mail
|
# autocheck local mail
|
||||||
export MAIL=/var/mail/$USER
|
export MAIL=/var/mail/$USER
|
||||||
|
@ -10,7 +11,6 @@ export MAILCHECK=30
|
||||||
|
|
||||||
export EDITOR=vim
|
export EDITOR=vim
|
||||||
|
|
||||||
export PATH=".:$HOME/bin:$HOME/.local/bin:$PATH:/usr/sbin:/sbin"
|
|
||||||
export LANG=fr_FR.UTF-8
|
export LANG=fr_FR.UTF-8
|
||||||
|
|
||||||
# history : don't put duplicate lines in the history. Ignore line begin with space
|
# history : don't put duplicate lines in the history. Ignore line begin with space
|
||||||
|
@ -57,6 +57,8 @@ PROMPT_COMMAND='PS1="[\u@\h] -- \w "; echo -ne "\033]0;${USER}@${HOSTNAME}: ${P
|
||||||
|
|
||||||
# I love google-chrome :)
|
# I love google-chrome :)
|
||||||
export BROWSER=google-chrome
|
export BROWSER=google-chrome
|
||||||
|
# ... and vim
|
||||||
|
export EDITOR=vim
|
||||||
|
|
||||||
# very min bash aliases
|
# very min bash aliases
|
||||||
alias ls='ls -F --color'
|
alias ls='ls -F --color'
|
||||||
|
@ -66,7 +68,11 @@ alias ll='ls -al'
|
||||||
### dotfiles stuff
|
### dotfiles stuff
|
||||||
test -f ~/dotfiles/.bash_aliases && source ~/dotfiles/.bash_aliases
|
test -f ~/dotfiles/.bash_aliases && source ~/dotfiles/.bash_aliases
|
||||||
test -f ~/dotfiles/.bash_prompt && source ~/dotfiles/.bash_prompt
|
test -f ~/dotfiles/.bash_prompt && source ~/dotfiles/.bash_prompt
|
||||||
test -d ~/dotfiles/bash_completion && { for f in ~/dotfiles/bash_completion/*.bash; do source $f; done; }
|
test -d ~/dotfiles/bash_completion && {
|
||||||
|
for f in ~/dotfiles/bash_completion/*.bash;
|
||||||
|
do source $f;
|
||||||
|
done;
|
||||||
|
}
|
||||||
# To create the file: dircolors -p
|
# To create the file: dircolors -p
|
||||||
test -f ~/dotfiles/.dircolors && eval "`dircolors ~/dotfiles/.dircolors`"
|
test -f ~/dotfiles/.dircolors && eval "`dircolors ~/dotfiles/.dircolors`"
|
||||||
|
|
||||||
|
@ -74,17 +80,9 @@ test -f ~/dotfiles/.dircolors && eval "`dircolors ~/dotfiles/.dircolors`"
|
||||||
# manpath
|
# manpath
|
||||||
export MANPATH=$HOME/.local/share/man:
|
export MANPATH=$HOME/.local/share/man:
|
||||||
|
|
||||||
### nodejs
|
|
||||||
test -d ~/.local_node/bin && export PATH="$PATH:$HOME/.local_node/bin"
|
|
||||||
|
|
||||||
|
|
||||||
# added by Nix installer
|
# added by Nix installer
|
||||||
if [ -e /home/patrick/.nix-profile/etc/profile.d/nix.sh ]; then . /home/patrick/.nix-profile/etc/profile.d/nix.sh; fi
|
if [ -e /home/patrick/.nix-profile/etc/profile.d/nix.sh ]; then . /home/patrick/.nix-profile/etc/profile.d/nix.sh; fi
|
||||||
|
|
||||||
# golang env
|
|
||||||
export PATH=$PATH:/home/patrick/src/golang/go1.11.2/bin
|
|
||||||
export GOPATH=/home/patrick/devel/golang
|
|
||||||
|
|
||||||
# autolaunch tmux
|
# autolaunch tmux
|
||||||
# https://wiki.archlinux.org/index.php/Tmux#Bash
|
# https://wiki.archlinux.org/index.php/Tmux#Bash
|
||||||
# test $- != *i* && return
|
# test $- != *i* && return
|
||||||
|
@ -92,6 +90,18 @@ export GOPATH=/home/patrick/devel/golang
|
||||||
# test -n "$(tmux ls 2>/dev/null)" && exec tmux attach || exec tmux
|
# test -n "$(tmux ls 2>/dev/null)" && exec tmux attach || exec tmux
|
||||||
# }
|
# }
|
||||||
|
|
||||||
|
# use gpg-agent for gpg
|
||||||
|
# from gpg-agent(1)
|
||||||
|
if [ -f "~/.gnupg/.gpg-agent-info" ]; then
|
||||||
|
. "~/.gnupg/.gpg-agent-info"
|
||||||
|
export GPG_AGENT_INFO
|
||||||
|
# export SSH_AUTH_SOCK
|
||||||
|
fi
|
||||||
|
GPG_TTY=$(tty)
|
||||||
|
export GPG_TTY
|
||||||
|
|
||||||
|
# fuzzyFinder FIXME bloque la completion
|
||||||
|
# [ -f ~/.fzf.bash ] && source ~/.fzf.bash
|
||||||
|
|
||||||
|
echo "<< .bashrc"
|
||||||
# end .bashrc
|
# end .bashrc
|
||||||
|
|
Loading…
Reference in New Issue