-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
22 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
### some examples of custom aliases | ||
|
||
alias ll="ls -l" | ||
|
||
### clear terminal window | ||
alias cls='printf "\033c"' | ||
|
||
### change terminal prompt text | ||
fn_ps1() { | ||
if [ $# -gt 0 ] ; then | ||
### given value in bold green | ||
PS1="\[\033[01;32m\]$1\[\033[00m\]> " | ||
else | ||
### basename of the current working directory in bold blue | ||
PS1='\[\033[01;34m\]\W\[\033[00m\]> ' | ||
fi | ||
} | ||
alias ps1='fn_ps1' |