.bashrc: add lscat; +1 tmp file
This commit is contained in:
parent
dd9f6470b8
commit
0262d659bb
19
.bashrc
19
.bashrc
|
|
@ -85,11 +85,28 @@ calc() {
|
||||||
echo "$@" | bc
|
echo "$@" | bc
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Show content of something, `ls` for dirs (and special files), `cat` for files
|
||||||
|
lscat() {
|
||||||
|
[[ $# -eq 0 ]] && ls -la && return
|
||||||
|
printnewline=""
|
||||||
|
for f in "$@"; do
|
||||||
|
[[ $printnewline ]] && echo
|
||||||
|
printnewline=1
|
||||||
|
if [[ -f $f ]]; then
|
||||||
|
[[ $# -gt 1 ]] && echo "-- cat \"$f\""
|
||||||
|
cat "$f"
|
||||||
|
else
|
||||||
|
[[ $# -gt 1 ]] && echo "-- ls \"$f\""
|
||||||
|
ls -la "$f"
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
}
|
||||||
|
|
||||||
# Define colors for bash prompt (will also be used in .bashrc.local)
|
# Define colors for bash prompt (will also be used in .bashrc.local)
|
||||||
TRED='\[\e[0;31m\]' # Red
|
TRED='\[\e[0;31m\]' # Red
|
||||||
TGREEN='\[\e[0;32m\]' # Green
|
TGREEN='\[\e[0;32m\]' # Green
|
||||||
TCYANB='\[\e[1;36m\]' # Cyan bold
|
TCYANB='\[\e[1;36m\]' # Cyan bold
|
||||||
TBLUE='\[\e[1;34m\]' # Blue
|
TBLUE='\[\e[0;34m\]' # Blue
|
||||||
TWHITEB='\[\e[1;37m\]' # White bold
|
TWHITEB='\[\e[1;37m\]' # White bold
|
||||||
TRESET='\[\e[0m\]' # Text Reset
|
TRESET='\[\e[0m\]' # Text Reset
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,14 @@
|
||||||
|
# -- THEME AUTO-WRITTEN DO NOT EDIT
|
||||||
|
include "/usr/share/themes/Adwaita/gtk-2.0/gtkrc"
|
||||||
|
|
||||||
|
style "user-font" {
|
||||||
|
font_name = "Sans 9"
|
||||||
|
}
|
||||||
|
|
||||||
|
widget_class "*" style "user-font"
|
||||||
|
|
||||||
|
gtk-font-name="Sans 9"
|
||||||
|
|
||||||
|
include "/home/lexi/.gtkrc.mine"
|
||||||
|
|
||||||
|
# -- THEME AUTO-WRITTEN DO NOT EDIT
|
||||||
Loading…
Reference in New Issue