shell tweaks
This commit is contained in:
@@ -6,7 +6,7 @@ configuration {
|
|||||||
/* location: 0;*/
|
/* location: 0;*/
|
||||||
/* yoffset: 0;*/
|
/* yoffset: 0;*/
|
||||||
/* xoffset: 0;*/
|
/* xoffset: 0;*/
|
||||||
/* fixed-num-lines: true;*/
|
fixed-num-lines: true;
|
||||||
show-icons: true;
|
show-icons: true;
|
||||||
terminal: "alacritty";
|
terminal: "alacritty";
|
||||||
/* ssh-client: "ssh";*/
|
/* ssh-client: "ssh";*/
|
||||||
|
|||||||
@@ -1,4 +1,5 @@
|
|||||||
|
|
||||||
|
alias diff='diff -u --color'
|
||||||
alias tree='eza --tree'
|
alias tree='eza --tree'
|
||||||
alias ls='eza' # make output more readable and show directories first
|
alias ls='eza' # make output more readable and show directories first
|
||||||
alias ll='ls --long --header --git'
|
alias ll='ls --long --header --git'
|
||||||
@@ -13,12 +14,26 @@ alias r='R'
|
|||||||
alias xar="xarchiver"
|
alias xar="xarchiver"
|
||||||
|
|
||||||
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
# Add an "alert" alias for long running commands. Use like so: 'sleep 10; alert'
|
||||||
alias notify='notify-send --urgency=low -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
alias notify='notify-send --urgency=normal -i "$([ $? = 0 ] && echo terminal || echo error)" "$(history|tail -n1|sed -e '\''s/^\s*[0-9]\+\s*//;s/[;&|]\s*alert$//'\'')"'
|
||||||
|
|
||||||
#Add a "dotfiles" alias for .dotfile git repo
|
#Add a "dotfiles" alias for .dotfile git repo
|
||||||
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
alias dotfiles='git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME'
|
||||||
#alias 'dotfiles-update'='dotfiles commit -a && dotfiles push'
|
#alias 'dotfiles-update'='dotfiles commit -a && dotfiles push'
|
||||||
|
|
||||||
|
sleep() {
|
||||||
|
if [ "$1" = "-m" ]; then
|
||||||
|
if [ -n "$2" ]; then
|
||||||
|
sleep "$(( $2 * 60 ))"
|
||||||
|
else
|
||||||
|
echo "Please provide a duration in minutes after the -m flag."
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
/usr/bin/sleep "$@"
|
||||||
|
fi
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
colors() {
|
colors() {
|
||||||
local fgc bgc vals seq0
|
local fgc bgc vals seq0
|
||||||
|
|||||||
3
.profile
3
.profile
@@ -44,3 +44,6 @@ export BROWSER=/usr/bin/firefox
|
|||||||
export TERMINAL=/usr/bin/alacritty
|
export TERMINAL=/usr/bin/alacritty
|
||||||
export EXPLORER=/usr/bin/thunar
|
export EXPLORER=/usr/bin/thunar
|
||||||
export MAILCLIENT=/usr/bin/thunderbird
|
export MAILCLIENT=/usr/bin/thunderbird
|
||||||
|
# set BAT as man pager
|
||||||
|
export MANPAGER="sh -c 'col -bx | bat -l man -p'"
|
||||||
|
export MANROFFOPT="-c"
|
||||||
|
|||||||
Reference in New Issue
Block a user