Added bash folder
This commit is contained in:
13
bash/.bash_aliases
Normal file
13
bash/.bash_aliases
Normal file
@@ -0,0 +1,13 @@
|
|||||||
|
alias snano='sudo nano'
|
||||||
|
alias shano='sudo nano -Y sh'
|
||||||
|
alias sup='sudo apt update;sudo run-parts /etc/update-motd.d/'
|
||||||
|
alias sip='sudo apt install'
|
||||||
|
alias sap='sudo apt'
|
||||||
|
alias psg='ps aux|grep'
|
||||||
|
alias clr='clear'
|
||||||
|
alias x='exit'
|
||||||
|
alias smore='$(history -p ^more^"sudo nano")'
|
||||||
|
alias sless='$(history -p ^less^"sudo nano")'
|
||||||
|
alias ssed='sudo sed'
|
||||||
|
alias lll='ls --color -la | less -R'
|
||||||
|
alias ll='ls -la'
|
||||||
29
bash/.bash_profile
Normal file
29
bash/.bash_profile
Normal file
@@ -0,0 +1,29 @@
|
|||||||
|
# console coloring for kool kids
|
||||||
|
# thehermit is bold green 01;32m
|
||||||
|
# coriakian is bold red 01;31m
|
||||||
|
# farsight is bold cyan 01;36m
|
||||||
|
# caspian is bold yellow 01;33m
|
||||||
|
PS1='\[\033[01;36m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ '
|
||||||
|
|
||||||
|
# if this is an xterm set the title to user@host:dir
|
||||||
|
case "$TERM" in
|
||||||
|
xterm*|rxvt*)
|
||||||
|
PS1="\[\e]0;\u@\h: \w\a\]$PS1"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# impersonate a user
|
||||||
|
alias user="su -ls /bin/bash"
|
||||||
|
|
||||||
|
alias v="ls -lA"
|
||||||
|
|
||||||
|
# Alias definitions.
|
||||||
|
# You may want to put all your additions into a separate file like
|
||||||
|
# ~/.bash_aliases, instead of adding them here directly.
|
||||||
|
# See /usr/share/doc/bash-doc/examples in the bash-doc package.
|
||||||
|
|
||||||
|
if [ -f ~/.bash_aliases ]; then
|
||||||
|
. ~/.bash_aliases
|
||||||
|
fi
|
||||||
Reference in New Issue
Block a user