Add aliases anf modify prompt
This commit is contained in:
parent
d8b9c75c59
commit
dddb87b02c
2 changed files with 25 additions and 0 deletions
|
@ -128,7 +128,28 @@ alias aa2mp3='ffmpeg -f concat -safe 0 -i <(for f in *.aa; do echo "file '"'"'$(
|
||||||
alias cim="vim"
|
alias cim="vim"
|
||||||
alias vom="vim"
|
alias vom="vim"
|
||||||
alias vin="vim"
|
alias vin="vim"
|
||||||
|
alias vi="vim"
|
||||||
|
|
||||||
#Servers Memory
|
#Servers Memory
|
||||||
alias servermem='toilet -w 200 "VPS 01" && ssh shires free -h && toilet -w 200 "VPS 02" && ssh abc free -h && toilet -w 200 "VPS 03" && ssh cdc2 free -h && toilet -w 200 "Freightliner" && ssh freightliner free && toilet -w 200 "NHS" && ssh nhs free -h'
|
alias servermem='toilet -w 200 "VPS 01" && ssh shires free -h && toilet -w 200 "VPS 02" && ssh abc free -h && toilet -w 200 "VPS 03" && ssh cdc2 free -h && toilet -w 200 "Freightliner" && ssh freightliner free && toilet -w 200 "NHS" && ssh nhs free -h'
|
||||||
|
|
||||||
|
###########################################
|
||||||
|
# #
|
||||||
|
# Suffex Aliases #
|
||||||
|
# #
|
||||||
|
###########################################
|
||||||
|
|
||||||
|
alias -s html=$EDITOR
|
||||||
|
alias -s htm=$EDITOR
|
||||||
|
|
||||||
|
alias -s php=$EDITOR
|
||||||
|
|
||||||
|
alias -s less=$EDITOR
|
||||||
|
alias -s css=$EDITOR
|
||||||
|
|
||||||
|
alias -s js=$EDITOR
|
||||||
|
alias -s es6=$EDITOR
|
||||||
|
|
||||||
|
alias -s gitignore=$EDITOR
|
||||||
|
|
||||||
|
alias -s json=$EDITOR
|
||||||
|
|
|
@ -34,6 +34,10 @@ function my_dir(){
|
||||||
# Change wp-content in sub folders
|
# Change wp-content in sub folders
|
||||||
current_path=$(echo $current_path | sed -r -e "s/wp\-content\//wpc\//")
|
current_path=$(echo $current_path | sed -r -e "s/wp\-content\//wpc\//")
|
||||||
|
|
||||||
|
if [[ $(tput cols) -lt 100 ]]; then
|
||||||
|
current_path=$(echo $current_path | sed -r -e "s/wpc\/themes\///")
|
||||||
|
fi
|
||||||
|
|
||||||
elif [[ -e "$ph/bin/magento" ]]; then #If magento
|
elif [[ -e "$ph/bin/magento" ]]; then #If magento
|
||||||
icon=$magentoSiteIcon
|
icon=$magentoSiteIcon
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue