mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
fish_config to select the proper tab when run with a tab name
`fish_config abbr` should show "abbreviations" selected in the tab list.
This commit is contained in:
parent
7b34aaa432
commit
6fbb3c9976
1 changed files with 2 additions and 2 deletions
|
@ -1,8 +1,8 @@
|
||||||
controllers = angular.module("controllers", []);
|
controllers = angular.module("controllers", []);
|
||||||
|
|
||||||
controllers.controller("main", function($scope, $location) {
|
controllers.controller("main", function($scope, $location) {
|
||||||
$scope.currentTab = "colors";
|
// substr(1) strips a leading slash
|
||||||
|
$scope.currentTab = $location.path().substr(1) || "colors";
|
||||||
$scope.changeView = function(view) {
|
$scope.changeView = function(view) {
|
||||||
$location.path(view);
|
$location.path(view);
|
||||||
$scope.currentTab = view;
|
$scope.currentTab = view;
|
||||||
|
|
Loading…
Reference in a new issue