colored ag & alias thefuck
This commit is contained in:
parent
e26dc9a2b5
commit
69469b1496
1 changed files with 8 additions and 0 deletions
8
.bashrc
8
.bashrc
|
|
@ -166,6 +166,11 @@ function psg() {
|
||||||
ps aux | grep -v grep | grep --ignore-case --color=always $1 | colout '^\S+\s+([0-9]+).*$' blue
|
ps aux | grep -v grep | grep --ignore-case --color=always $1 | colout '^\S+\s+([0-9]+).*$' blue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function agc() {
|
||||||
|
ag "$1" | colout "$1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
# Notify when a command is completed, with a visual warning.
|
# Notify when a command is completed, with a visual warning.
|
||||||
function notify() {
|
function notify() {
|
||||||
|
|
@ -348,6 +353,9 @@ HISTTIMEFORMAT='%F %T '
|
||||||
# Manually switch to the bépo keyboard layout
|
# Manually switch to the bépo keyboard layout
|
||||||
alias bepo="setxkbmap -layout fr -variant bepo -option"
|
alias bepo="setxkbmap -layout fr -variant bepo -option"
|
||||||
|
|
||||||
|
# Import the correct alias for thefuck
|
||||||
|
eval $(thefuck --alias fuck)
|
||||||
|
|
||||||
# Use liquidprompt only if in an interactive shell
|
# Use liquidprompt only if in an interactive shell
|
||||||
if [[ $- == *i* ]]; then
|
if [[ $- == *i* ]]; then
|
||||||
# Super nice prompt
|
# Super nice prompt
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue